Any issue with storing VMware virtual machines on an external hard disk?
将VMware虚拟机存储在外部硬盘上的任何问题?
I recently setup an Ubuntu virtual machine on my external hard disk. Once I accidentally removed the external hard disk USB connection, then when I tried to startup the Ubuntu VM again I got a kernel panic.
我最近在外部硬盘上安装了一个Ubuntu虚拟机。一旦我不小心删除了外部硬盘USB连接,那么当我再次尝试启动Ubuntu VM时,我遇到了内核恐慌。
I'm thinking of writing a cron script to backup everyday to another location to prevent this issue.
我正在考虑编写一个cron脚本,每天备份到另一个位置以防止出现此问题。
2 个解决方案
#1
My primary development box is a Windows 2003 Server installation running on a VMWare virtual machine that runs off a 500 GB external (USB 2.0) hard drive. It works fine. Some notes:
我的主要开发框是运行在VMWare虚拟机上的Windows 2003 Server安装,该虚拟机运行500 GB外部(USB 2.0)硬盘驱动器。它工作正常。一些说明:
- It works with write caching turned on or off. Better with it on.
- Whether you have write caching on or off, always make sure to properly shut down (or suspend) the VM, and always use the eject hardware feature to stop the drive before you disconnect the hard disk.
- When you eject/stop the drive, it can take several minutes to finish writing all the data to the external drive. Don't force it or rush it, or you'll have a corrupted VM.
它可以打开或关闭写缓存。用它做得更好。
无论是打开还是关闭写入缓存,始终确保正确关闭(或挂起)VM,并始终使用弹出硬件功能在断开硬盘连接之前停止驱动器。
弹出/停止驱动器时,可能需要几分钟才能完成将所有数据写入外部驱动器。不要强迫它或冲它,否则你的VM会被破坏。
My host machine is a laptop running XP Pro, so it's protected from power outages. I also have a UPS that I plug the external drive into in case the power flickers.
我的主机是运行XP Pro的笔记本电脑,因此可以防止断电。我还有一台UPS,我将外接驱动器插入,以防电源闪烁。
If you do end up with a corrupted VM (which has happened rarely), as a worst case all you need to do is create a new VM and attach the same drives to it. It's always come up running fine for me.
如果您最终遇到损坏的VM(很少发生),最糟糕的情况是您需要创建一个新VM并将相同的驱动器连接到它。对我来说总是很好。
Edit: Your backup strategy should be chosen independently of whether or not it's on an external hard disk. Even if you have them locally, VMs can become corrupted or you can lose data. Choose how often you need to back them up and do it. However, you should fully stop the VM and shut it down before doing the backup (don't just suspend it).
编辑:您的备份策略应该独立于是否在外部硬盘上进行选择。即使您在本地使用它们,虚拟机也可能会损坏,或者您可能会丢失数据。选择备份和执行操作所需的频率。但是,您应该在执行备份之前完全停止VM并将其关闭(不要只是暂停它)。
#2
Besides the speed factor of the USB interface compared to either PATA/SATA issues. There should be no problems with this. Backing up your entire VM configuration will help safeguard power issues.
除了USB接口的速度因素与PATA / SATA问题相比。应该没有问题。备份整个VM配置有助于防止电源问题。
VMWare created Pocket ACE edition for this exact scenario of enabling virtual machines to be run from USB drives.
VMWare创建了Pocket ACE版本,用于实现从USB驱动器运行虚拟机的确切方案。
#1
My primary development box is a Windows 2003 Server installation running on a VMWare virtual machine that runs off a 500 GB external (USB 2.0) hard drive. It works fine. Some notes:
我的主要开发框是运行在VMWare虚拟机上的Windows 2003 Server安装,该虚拟机运行500 GB外部(USB 2.0)硬盘驱动器。它工作正常。一些说明:
- It works with write caching turned on or off. Better with it on.
- Whether you have write caching on or off, always make sure to properly shut down (or suspend) the VM, and always use the eject hardware feature to stop the drive before you disconnect the hard disk.
- When you eject/stop the drive, it can take several minutes to finish writing all the data to the external drive. Don't force it or rush it, or you'll have a corrupted VM.
它可以打开或关闭写缓存。用它做得更好。
无论是打开还是关闭写入缓存,始终确保正确关闭(或挂起)VM,并始终使用弹出硬件功能在断开硬盘连接之前停止驱动器。
弹出/停止驱动器时,可能需要几分钟才能完成将所有数据写入外部驱动器。不要强迫它或冲它,否则你的VM会被破坏。
My host machine is a laptop running XP Pro, so it's protected from power outages. I also have a UPS that I plug the external drive into in case the power flickers.
我的主机是运行XP Pro的笔记本电脑,因此可以防止断电。我还有一台UPS,我将外接驱动器插入,以防电源闪烁。
If you do end up with a corrupted VM (which has happened rarely), as a worst case all you need to do is create a new VM and attach the same drives to it. It's always come up running fine for me.
如果您最终遇到损坏的VM(很少发生),最糟糕的情况是您需要创建一个新VM并将相同的驱动器连接到它。对我来说总是很好。
Edit: Your backup strategy should be chosen independently of whether or not it's on an external hard disk. Even if you have them locally, VMs can become corrupted or you can lose data. Choose how often you need to back them up and do it. However, you should fully stop the VM and shut it down before doing the backup (don't just suspend it).
编辑:您的备份策略应该独立于是否在外部硬盘上进行选择。即使您在本地使用它们,虚拟机也可能会损坏,或者您可能会丢失数据。选择备份和执行操作所需的频率。但是,您应该在执行备份之前完全停止VM并将其关闭(不要只是暂停它)。
#2
Besides the speed factor of the USB interface compared to either PATA/SATA issues. There should be no problems with this. Backing up your entire VM configuration will help safeguard power issues.
除了USB接口的速度因素与PATA / SATA问题相比。应该没有问题。备份整个VM配置有助于防止电源问题。
VMWare created Pocket ACE edition for this exact scenario of enabling virtual machines to be run from USB drives.
VMWare创建了Pocket ACE版本,用于实现从USB驱动器运行虚拟机的确切方案。