• Как в VirtualBox сделать автозагрузку снимка состояния системы?

    @alexsandrusa Автор вопроса
    пишу в ярлыке запуска "C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe" —comment "test_sec" —startvm "{3b703178-ce69-49e9-ba27-b2a672d0be7e}"
    и не работает ни чего.
    Вот код файла где я нашёл UUID

    5dc56074c1b2b650266187.jpeg
    <?xml version="1.0"?>
    
    <!--
    ** DO NOT EDIT THIS FILE.
    ** If you make changes to this file while any VirtualBox related application
    ** is running, your changes will be overwritten later, without taking effect.
    ** Use VBoxManage or the VirtualBox Manager GUI to make changes.
    -->
    <VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-windows">
      <Machine uuid="{3aab1d06-dbb0-4d1d-9c80-f96c80e258d6}" name="test_sec" OSType="Windows7_64" currentSnapshot="{3b703178-ce69-49e9-ba27-b2a672d0be7e}" snapshotFolder="Snapshots" currentStateModified="false" lastStateChange="2019-11-08T10:41:35Z">
        <MediaRegistry>
          <HardDisks>
            <HardDisk uuid="{ee191ee1-d080-4155-96c8-e7a73b7f0d1f}" location="C:/Projekt/Win7_tets_sec/Win7_tets_sec.vdi" format="VDI" type="Normal">
              <HardDisk uuid="{4e77c889-a84a-4f19-adba-486b9c7d6f75}" location="Snapshots/{4e77c889-a84a-4f19-adba-486b9c7d6f75}.vdi" format="VDI"/>
              <HardDisk uuid="{321976d8-6a4e-4c50-a2f7-2182a9a53db5}" location="Snapshots/{321976d8-6a4e-4c50-a2f7-2182a9a53db5}.vdi" format="VDI"/>
            </HardDisk>
          </HardDisks>
          <DVDImages>
            <Image uuid="{b6f5b90e-2d09-4113-bba4-f029f5b67a4c}" location="C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso"/>
          </DVDImages>
        </MediaRegistry>
        <ExtraData>
          <ExtraDataItem name="GUI/LastCloseAction" value="PowerOffRestoringSnapshot"/>
          <ExtraDataItem name="GUI/LastNormalWindowPosition" value="316,171,1024,810"/>
        </ExtraData>
        <Snapshot uuid="{3b703178-ce69-49e9-ba27-b2a672d0be7e}" name="snapchoot" timeStamp="2019-11-08T10:41:35Z">
          <Hardware>
            <CPU>
              <PAE enabled="false"/>
              <LongMode enabled="true"/>
              <HardwareVirtExLargePages enabled="true"/>
            </CPU>
            <Memory RAMSize="3011"/>
            <HID Pointing="USBTablet"/>
            <Paravirt provider="Default"/>
            <Boot>
              <Order position="1" device="HardDisk"/>
              <Order position="2" device="Floppy"/>
              <Order position="3" device="DVD"/>
              <Order position="4" device="None"/>
            </Boot>
            <Display controller="VBoxSVGA" VRAMSize="128"/>
            <VideoCapture screens="1" file="." fps="25"/>
            <RemoteDisplay enabled="false"/>
            <BIOS>
              <IOAPIC enabled="true"/>
            </BIOS>
            <USB>
              <Controllers>
                <Controller name="OHCI" type="OHCI"/>
              </Controllers>
              <DeviceFilters>
                <DeviceFilter name="SanDisk Cruzer Fit [0100]" active="true" vendorId="0781" productId="5571" revision="0100" manufacturer="SanDisk" product="Cruzer Fit" serialNumber="4C530001110910102584" remote="0"/>
              </DeviceFilters>
            </USB>
            <Network>
              <Adapter slot="0" enabled="true" MACAddress="08002762E51B" cable="true" promiscuousModePolicy="AllowAll" type="82540EM">
                <DisabledModes>
                  <InternalNetwork name="intnet"/>
                  <HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
                  <NATNetwork name="NatNetwork"/>
                </DisabledModes>
                <BridgedInterface name="Realtek Gaming GBE Family Controller"/>
              </Adapter>
              <Adapter slot="1" MACAddress="080027E8E628" cable="true" type="82540EM">
                <DisabledModes>
                  <InternalNetwork name="intnet"/>
                  <NATNetwork name="NatNetwork"/>
                </DisabledModes>
                <HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
              </Adapter>
            </Network>
            <AudioAdapter controller="HDA" driver="DirectSound" enabled="true" enabledIn="false"/>
            <GuestProperties>
              <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="ru_RU" timestamp="1573208408531432700" flags=""/>
            </GuestProperties>
          </Hardware>
          <StorageControllers>
            <StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
              <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
                <Image uuid="{ee191ee1-d080-4155-96c8-e7a73b7f0d1f}"/>
              </AttachedDevice>
              <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
            </StorageController>
          </StorageControllers>
        </Snapshot>
        <Hardware>
          <CPU>
            <PAE enabled="false"/>
            <LongMode enabled="true"/>
            <HardwareVirtExLargePages enabled="true"/>
          </CPU>
          <Memory RAMSize="3011"/>
          <HID Pointing="USBTablet"/>
          <Paravirt provider="Default"/>
          <Boot>
            <Order position="1" device="HardDisk"/>
            <Order position="2" device="Floppy"/>
            <Order position="3" device="DVD"/>
            <Order position="4" device="None"/>
          </Boot>
          <Display controller="VBoxSVGA" VRAMSize="128"/>
          <VideoCapture screens="1" file="." fps="25"/>
          <RemoteDisplay enabled="false"/>
          <BIOS>
            <IOAPIC enabled="true"/>
          </BIOS>
          <USB>
            <Controllers>
              <Controller name="OHCI" type="OHCI"/>
            </Controllers>
            <DeviceFilters>
              <DeviceFilter name="SanDisk Cruzer Fit [0100]" active="true" vendorId="0781" productId="5571" revision="0100" manufacturer="SanDisk" product="Cruzer Fit" serialNumber="4C530001110910102584" remote="0"/>
            </DeviceFilters>
          </USB>
          <Network>
            <Adapter slot="0" enabled="true" MACAddress="08002762E51B" cable="true" promiscuousModePolicy="AllowAll" type="82540EM">
              <DisabledModes>
                <InternalNetwork name="intnet"/>
                <HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
                <NATNetwork name="NatNetwork"/>
              </DisabledModes>
              <BridgedInterface name="Realtek Gaming GBE Family Controller"/>
            </Adapter>
            <Adapter slot="1" MACAddress="080027E8E628" cable="true" type="82540EM">
              <DisabledModes>
                <InternalNetwork name="intnet"/>
                <NATNetwork name="NatNetwork"/>
              </DisabledModes>
              <HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
            </Adapter>
          </Network>
          <AudioAdapter controller="HDA" driver="DirectSound" enabled="true" enabledIn="false"/>
          <GuestProperties>
            <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="ru_RU" timestamp="1573208408531432700" flags=""/>
          </GuestProperties>
        </Hardware>
        <StorageControllers>
          <StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
            <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
              <Image uuid="{321976d8-6a4e-4c50-a2f7-2182a9a53db5}"/>
            </AttachedDevice>
            <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
          </StorageController>
        </StorageControllers>
      </Machine>
    </VirtualBox>
  • Как в VirtualBox сделать автозагрузку снимка состояния системы?

    @alexsandrusa Автор вопроса
    Dmytro Boyko, да, я примерно так и думал, но UUID снапшота не хочет читаться, говорит что нет такой виртуальной машины.