Virtualization: Difference between revisions
No edit summary |
|||
Line 14: | Line 14: | ||
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on | If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on | ||
your cpu. | your cpu. | ||
== KVM ACPI Shutdown of Guests == | |||
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option. | |||
=== Windows XP === | |||
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from [http://msdn.microsoft.com/en-us/library/ms940850(v=WinEmbedded.5).aspx Enabling Default Reply]. | |||
Here is my registry file that applies the keys to the registry. | |||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument] | |||
"EnableDefaultReply"=dword:00000001 | |||
"EnableLogging"=dword:00000001 | |||
"LogSeverity"=dword:00000003 | |||
=== Ubuntu Lucid Desktop === | |||
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified. | |||
At the top of /etc/acpi/powerbtn.sh, Add the halt command, | |||
#!/bin/sh | |||
# /etc/acpi/powerbtn.sh | |||
# Initiates a shutdown when the power putton has been | |||
# pressed. | |||
'''halt -p''' | |||
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-fu | |||
ncs | |||
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 == | == Fix VMware 6.5.3 on Ubuntu Karmic 9.10 == |
Revision as of 07:00, 16 December 2010
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
- vmx – (intel)
- svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on your cpu.
KVM ACPI Shutdown of Guests
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
Windows XP
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from Enabling Default Reply.
Here is my registry file that applies the keys to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument] "EnableDefaultReply"=dword:00000001 "EnableLogging"=dword:00000001 "LogSeverity"=dword:00000003
Ubuntu Lucid Desktop
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has been # pressed. halt -p [ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-fu
ncs
Fix VMware 6.5.3 on Ubuntu Karmic 9.10
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle export VMWARE_SKIP_MODULES=true ./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash export VMWARE_USE_SHIPPED_GTK=force /usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware