Not sure what you mean by re-image a VM. If the VM is a file, you can easily make a copy and restore to that point at any time. Are you asking if you can boot into a restore mode and restore from a CD or ISO? I don't see why not, you just need to run the VM with the proper mount points. On the command line, you just tell it to boot from the CD/ISO, and it should do what you are suggesting. Check this section of the KVM community page. I think what you do is use "-boot d" and specify the CD/ISO as the CDROM device.
https://help.ubuntu.com/community/KVM KVM from the command line KVM is very similar to qemu and it is possible to run machines from the command line. The basic syntax is : kvm -m 512 -hda disk.img -cdrom ubuntu.iso -boot d -smp 2 - -m = memory (in MB) - -hda = first hard drive - You can use a number of image file types including .img, .cow - You can also boot a hard drive. *Be careful with this option as you do not want to boot the host root partition* - Syntax -hda /dev/sda - This will call your grub menu from your MBR when you boot kvm. - -cdrom can be an iso image or a CD/DVD drive. - -boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n) - -smp = number of CPU - -alt-grab change Ctrl-Alt mouse grab combination for Ctrl-Alt-Shift (very practical if you often use some control key combinations like Ctrl-Alt-Del or Windows-E) There are a number of additional options and additional help is available with : On Sun, Dec 21, 2008 at 8:25 AM, Scott Raley -ITC <[email protected]>wrote: > Do you know if you can save the VM and reimage the VM if you mess something > up? I'm building an ubuntu server now but I haven't found a clear answer > if > I can reimage a VM on the desktop side. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:283220 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
