Como mover a máquina virtual do vbox para um local diferente junto com os instantâneos [fechados]

0

Eu tenho o oracle virtualbox3.2 instalado no desktop do ubuntu 9.10. Ele estava funcionando bem por um longo tempo, mas de repente, hoje, quando eu tento abrir o VirtualBox indo para Applications > system tools > está mostrando a mensagem de erro abaixo em uma janela:

Failed to create the VirtualBox COM object.
The application will now terminate.
Start tag expected, '<' not found.
Location: '/home/avyakta/.VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-3.2.6/src/VBox/Main/VirtualBoxImpl.cpp[535] (nsresult VirtualBox::init())

Eu também tentei "sudo /etc/init.d/vboxdrv setup" mas não uso.

O arquivo 'Virtualbox.xml' estava vazio, então eu o removi e registrei o vbox novamente. Eu tive que adicionar os VDIs novamente, mas ele não está tirando os instantâneos com o local especificado do instantâneo. Então, estou procurando se há alguma maneira de fazer o vdi e seus snapshots funcionarem.

EDIT 1:

Aqui está o meu arquivo xml da vm chamado karmic:

<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.10-linux">
<Machine uuid="{1b896ca0-7168-400c-a5a2-f601df03b294}" name="Karmic"  OSType="Ubuntu" currentSnapshot="{dd4914df-07b2-43b3-988e-531a369bf6dd}" snapshotFolder="/part2/Karmic9.10/snpsht" lastStateChange="2010-11-30T09:05:57Z">
<ExtraData>
  <ExtraDataItem name="GUI/LastCloseAction" value="powerOff"/>
  <ExtraDataItem name="GUI/LastGuestSizeHint" value="720,400"/>
  <ExtraDataItem name="GUI/LastWindowPostion" value="290,248,720,450"/>
  <ExtraDataItem name="GUI/MiniToolBarAlignment" value="bottom"/>
  <ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
  <ExtraDataItem name="GUI/ShowMiniToolBar" value="yes"/>
</ExtraData>
<Snapshot uuid="{dd4914df-07b2-43b3-988e-531a369bf6dd}" name="Snapshot 1" timeStamp="2010-11-25T08:45:09Z">
  <Hardware version="2">
    <CPU count="1" hotplug="false">
      <HardwareVirtEx enabled="true" exclusive="true"/>
      <HardwareVirtExNestedPaging enabled="true"/>
      <HardwareVirtExVPID enabled="true"/>
      <PAE enabled="true"/>
    </CPU>
<Memory RAMSize="512" PageFusion="false"/>
    <HID Pointing="USBTablet" Keyboard="PS2Keyboard"/>
    <HPET enabled="false"/>
    <Boot>
      <Order position="1" device="Floppy"/>
      <Order position="2" device="DVD"/>
      <Order position="3" device="HardDisk"/>
      <Order position="4" device="None"/>
    </Boot>
    <Display VRAMSize="12" monitorCount="1" accelerate3D="false" accelerate2DVideo="false"/>
    <RemoteDisplay enabled="false" port="3389" authType="Null" authTimeout="5000">
      <VideoChannel enabled="false" quality="75"/>
    </RemoteDisplay>
    <BIOS>
      <ACPI enabled="true"/>
      <IOAPIC enabled="false"/>
      <Logo fadeIn="true" fadeOut="true" displayTime="0"/>
      <BootMenu mode="MessageAndMenu"/>
      <TimeOffset value="0"/>
      <PXEDebug enabled="false"/>
</BIOS>
    <USBController enabled="true" enabledEhci="true"/>
    <Network>
      <Adapter slot="0" enabled="true" MACAddress="080027F8AA0B" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
        <BridgedInterface name="eth0"/>
      </Adapter>
      <Adapter slot="1" enabled="false" MACAddress="0800271E816E" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
<Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
      <Adapter slot="2" enabled="false" MACAddress="080027897DD1" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
      <Adapter slot="3" enabled="false" MACAddress="0800272F8A63" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
<DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
      <Adapter slot="4" enabled="false" MACAddress="0800270F071A" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
      <Adapter slot="5" enabled="false" MACAddress="080027D69053" cable="true" speed="0" type="82540EM">
        <DisabledModes>
</Adapter>
      <Adapter slot="6" enabled="false" MACAddress="08002747E6BF" cable="true" speed="0" type="82540EM">
        <DisabledModes>
          <NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
      <Adapter slot="7" enabled="false" MACAddress="0800275B2682" cable="true" speed="0" type="82540EM">
        <DisabledModes>
<NAT>
            <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
            <Alias logging="false" proxy-only="false" use-same-ports="false"/>
          </NAT>
        </DisabledModes>
      </Adapter>
    </Network>
    <UART>
      <Port slot="0" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
      <Port slot="1" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
    </UART>
    <LPT>
      <Port slot="0" enabled="false" IOBase="0x378" IRQ="4"/>
      <Port slot="1" enabled="false" IOBase="0x378" IRQ="4"/>
    </LPT>
    <AudioAdapter controller="AC97" driver="Pulse" enabled="true"/>
    <RTC localOrUTC="UTC"/>
    <SharedFolders/>
<Clipboard mode="Bidirectional"/>
    <IO>
      <IoCache enabled="true" size="5"/>
      <IoBandwidth max="0"/>
    </IO>
    <Guest memoryBalloonSize="0"/>
    <GuestProperties>
      <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1290674709753432000" flags=""/>
    </GuestProperties>
  </Hardware>
  <StorageControllers>
    <StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true">
      <AttachedDevice passthrough="false" type="DVD" port="1" device="0"/>
    </StorageController>
    <StorageController name="SATA Controller" type="AHCI" PortCount="1" useHostIOCache="false" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
      <AttachedDevice type="HardDisk" port="0" device="0">
        <Image uuid="{f79e6efe-d019-4a2f-8d88-95f47cb07b01}"/>
</AttachedDevice>
    </StorageController>
  </StorageControllers>
</Snapshot>
<Hardware version="2">
  <CPU count="1" hotplug="false">
    <HardwareVirtEx enabled="true" exclusive="true"/>
    <HardwareVirtExNestedPaging enabled="true"/>
    <HardwareVirtExVPID enabled="true"/>
    <PAE enabled="true"/>
  </CPU>
  <Memory RAMSize="512" PageFusion="false"/>
  <HID Pointing="USBTablet" Keyboard="PS2Keyboard"/>
  <HPET enabled="false"/>
  <Boot>
    <Order position="1" device="Floppy"/>
    <Order position="2" device="DVD"/>
    <Order position="3" device="HardDisk"/>
    <Order position="4" device="None"/>
  </Boot>
  <Display VRAMSize="12" monitorCount="1" accelerate3D="false" accelerate2DVideo="false"/>
<RemoteDisplay enabled="false" port="3389" authType="Null" authTimeout="5000">
    <VideoChannel enabled="false" quality="75"/>
  </RemoteDisplay>
  <BIOS>
    <ACPI enabled="true"/>
    <IOAPIC enabled="false"/>
    <Logo fadeIn="true" fadeOut="true" displayTime="0"/>
    <BootMenu mode="MessageAndMenu"/>
    <TimeOffset value="0"/>
    <PXEDebug enabled="false"/>
  </BIOS>
  <USBController enabled="true" enabledEhci="true"/>
  <Network>
    <Adapter slot="0" enabled="true" MACAddress="080027F8AA0B" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
</NAT>
      </DisabledModes>
      <BridgedInterface name="eth0"/>
    </Adapter>
    <Adapter slot="1" enabled="false" MACAddress="0800271E816E" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
    <Adapter slot="2" enabled="false" MACAddress="080027897DD1" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
</DisabledModes>
    </Adapter>
    <Adapter slot="3" enabled="false" MACAddress="0800272F8A63" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
    <Adapter slot="4" enabled="false" MACAddress="0800270F071A" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
<Adapter slot="5" enabled="false" MACAddress="080027D69053" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
    <Adapter slot="6" enabled="false" MACAddress="08002747E6BF" cable="true" speed="0" type="82540EM">
      <DisabledModes>
        <NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
    <Adapter slot="7" enabled="false" MACAddress="0800275B2682" cable="true" speed="0" type="82540EM">
      <DisabledModes>
<NAT>
          <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
          <Alias logging="false" proxy-only="false" use-same-ports="false"/>
        </NAT>
      </DisabledModes>
    </Adapter>
  </Network>
  <UART>
    <Port slot="0" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
    <Port slot="1" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
  </UART>
  <LPT>
    <Port slot="0" enabled="false" IOBase="0x378" IRQ="4"/>
    <Port slot="1" enabled="false" IOBase="0x378" IRQ="4"/>
  </LPT>
 <AudioAdapter controller="AC97" driver="Pulse" enabled="true"/>
  <RTC localOrUTC="UTC"/>
  <SharedFolders/>
  <Clipboard mode="Bidirectional"/>
  <IO>
    <IoCache enabled="true" size="5"/>
    <IoBandwidth max="0"/>
  </IO>
  <Guest memoryBalloonSize="0"/>
  <GuestProperties>
    <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1290674709753432000" flags=""/>
  </GuestProperties>
</Hardware>
<StorageControllers>
  <StorageController name="IDE Controller" type="PIIX4" PortCount="2"  useHostIOCache="true">
    <AttachedDevice passthrough="false" type="DVD" port="1" device="0"/>
  </StorageController>
  <StorageController name="SATA Controller" type="AHCI" PortCount="1"     useHostIOCache="false" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1"     IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
 <AttachedDevice type="HardDisk" port="0" device="0">
      <Image uuid="{65de14de-f434-469b-a494-528e74e64938}"/>
    </AttachedDevice>
    </StorageController>
   </StorageControllers>
  </Machine>
</VirtualBox>

Alguma ajuda ..?

    
por user3215 24.11.2010 / 06:06

1 resposta

2

As informações de snapshot no VirtualBox são armazenadas em vários lugares:

  • Dentro de ~ / .Virtualbox / Machines / MachineName / Snapshots, deve haver um arquivo VDI por snapshot e alguns arquivos .sav (um para cada snapshot e um para o estado atual se ele foi salvo). Não tenho certeza, mas aposto que .vdi armazena o estado do disco rígido e a memória .sav e outros estados.

  • O arquivo ~ / .Virtualbox / Machines / ManchineName.xml armazena toda a configuração da máquina virtual, incluindo instantâneos.

Se você recriou as chances da VM, o seu arquivo MachineName.xml foi substituído. Você terá que recriá-lo (provavelmente à mão).

Estas são as linhas relevantes no arquivo .xml de uma VM de teste que eu uso.

<Machine uuid="{b174a63e-19ce-4291-9b07-083916f3d316}" name="Probas" OSType="Ubuntu" stateFile="Snapshots/{b174a63e-19ce-4291-9b07-083916f3d316}.sav" currentSnapshot="{3ecc12c8-c27e-4574-9e79-59503777173f}" lastStateChange="2010-11-16T16:52:34Z">
<Snapshot uuid="{3ecc12c8-c27e-4574-9e79-59503777173f}" name="Ubuntu reciente" timeStamp="2010-08-12T20:38:36Z" stateFile="Snapshots/{3ecc12c8-c27e-4574-9e79-59503777173f}.sav">

Você provavelmente precisará adicionar uma linha "Instantâneo ..." para cada instantâneo em seu diretório.

Não foi realmente testado, espero que funcione.

    
por Javier Rivera 24.11.2010 / 09:50