Windows virtual machine : non persistent drive possible ?

Discussion in 'Proxmox VE: Installation and configuration' started by Marc Ballat, Apr 19, 2019.

Tags:
  1. Marc Ballat

    Marc Ballat New Member

    Joined:
    Dec 28, 2015
    Messages:
    22
    Likes Received:
    0
    Hi,

    I would like to know if Proxmox has a feature similar to a non-persistent drive in VMWare Workstation. I remember that a similar question has already been asked and answered negatively in the past. But things may have changed though searching both the internet and this forum hasn't given me any positive answer.

    The Windows virtual machine is configured with two volumes (one for the OS and the other for data). I use LVM-thin and virtio. I would like the OS to reside on a non-persistent volume (i.e. one whose changes are not permanent and returns to its previous status every time I boot).

    Thanks in advance.

    Marc
     
  2. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,113
    Likes Received:
    88
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Marc Ballat

    Marc Ballat New Member

    Joined:
    Dec 28, 2015
    Messages:
    22
    Likes Received:
    0
    Thanks. If I can vote somehow for this feature, let me know. It is really useful for Windows machines that tend otherwise to slow down over time and update or reset settings by themselves.
     
  4. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,113
    Likes Received:
    88
    just comment in the enhancement request that you would like it as well - we try to take into consideration if many people want to see a feature

    Of course we cannot give any timeframe when it will be done.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. alexskysilk

    alexskysilk Active Member

    Joined:
    Oct 16, 2015
    Messages:
    534
    Likes Received:
    57
    This can be accomplished using a hookscript. When OS installation is at the point you want to revert to, take a snapshot and lock it. the write a hookscript that reverts to snapshot on shutdown.
     
  6. Marc Ballat

    Marc Ballat New Member

    Joined:
    Dec 28, 2015
    Messages:
    22
    Likes Received:
    0
    Alex,

    Doesn't a snapshot apply to all drives ? I only one the C: drive, where the OS and programs are, to be frozen. The other drive(s) contain data and must be able to change permanently.

    Marc
     
  7. alexskysilk

    alexskysilk Active Member

    Joined:
    Oct 16, 2015
    Messages:
    534
    Likes Received:
    57
    Normally, yes, but if thats the requirement you dont need to use the proxmox snapshot mechanism; revert to snapshot of only the disk you wish using whatever storage method you use snapshot mechanism- presuming you create seperate vdisks for volume(s) you wish to control seperately.

    For example, assuming you're using ceph, you'd create two disks (one for disk c, and one for the rest of your partitions;) you hook script will call

    rbd snap rollback [poolname]/vm-[vmid]-disk-0@[your original snap name]

    disk 1 will remain unaffected.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice