LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-10-2011, 12:48 AM   #1
showrun
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Soloaris can't be poweroff


Thank you forgive my poor English,

It seems KVM can’t poweroff solairs 10 or sloalrs 11 VM.
I have created solaris 10 and 11 as usual. Everything in VM is running OK, but finally I use shell command ‘poweroff’ or ‘init 5’, the solaris VM (both 10 & 11) system could’t be poweroff but with promoting me the message: perss any key to reboot ….. ,I pressed any key in vnc client, solaris VM reboot immediately. Endless reboot loop above.
the solaris 10 & 11 from oracle iso file name :
sol-10-u9-ga-x86-dvd.iso
sol-11-exp-201011-text-x86.iso
the solaris 10 & 11 from oracle iso file

1. On my real physical machine,the solaris can be poweroff
2. On vmware ,the solaris can be poweroff
3. On my real physical machine,I have try to disbale the ACPI opiton in BOIS, then the solaris can't be poweroff,Like the problem I have described above
so ,I doubt the KVM has a little problem in ACPI

I have try the suggestion from KVM website as follows, but I can’t solve the problem.
/*******************************
Solaris reboot all the time on grub menu
• Run through the installer as usual
• On completion and reboot, the VM will perpetually reboot. "Stop" the VM.
• Start it up again, and immediately open a vnc console and select the Safe Boot from the options screen
• When prompted if you want to try and recover the boot block, say yes
• You should now have a Bourne terminal with your existing filesystem mounted on /a
• Run /a/usr/bin/bash (my preferred shell)
• export TERM=xterm
• vi /a/boot/grub/menu.1st (editing the bootloader on your mounted filesystem), to add "kernel/unix" to the kernel options for the non-safe-mode boot. Ex :
Config File : /a/boot/grub/menu.lst
kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS kernel/unix

******************************************/
I collected the following information:
CPU model name
Intel(R) Xeon(R) CPU X3450 @ 2.67GHz
kvm -version
QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Fabrice Bellard
Host kernel version
Ubuntu 10.04.1 LTS 2.6.32-25-server
My host kernel arch :
X86_64
My Guest OS
Solaris 10 and Solaris 11,both can not shutdown
The qemu command line I have used to start the guest:
First, I used the command line as follows:
kvm -m 1024 -drive file=solaris10.img,cache=writeback -net nic -net user -nographic -vnc :1
then I try to use -no-kvm-irqchip or -no-kvm ,but the problem also appears!
Secondly, have created and run solaris 10&11 by using Virsh, still solaris can't be poweroff, the XML file content is :
<domain type='kvm'>
<name>solairs</name>
<uuid>85badf15-244d-4719-a2da-8c3de064137d</uuid>
<memory>1677721</memory>
<currentMemory>1677721</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writeback'/>
<source file='/opt/GuestOS/solaris10.img'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<mac address='00:0c:29:d0:36:c3'/>
<source bridge='br1'/>
<target dev='vnet0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5901' autoport='no' keymap='en-us'/>
<video>
<model type='vga' vram='65536' heads='1'/>
</video>
</devices>
<seclabel type='dynamic' model='apparmor'>
<label>libvirt-f36f5289-692e-6f1c-fe71-c6ed19453e2f</label>
<imagelabel>libvirt-f36f5289-692e-6f1c-fe71-c6ed19453e2f</imagelabel>
</seclabel>
</domain>

Last edited by showrun; 08-10-2011 at 12:52 AM.
 
Old 08-10-2011, 01:20 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
probably not the answer you are looking for or expecting, but it really shouldn't matter too much, as long as the file systems (virtual or otherwise) are properly unmounted and the kernel is unloaded from memory than the system is effectively shut down, at this point powering off a real machine (or quitting a virtual machine) won't have any negative effects
yes it's not the most desirable but not gonna harm anything
 
Old 08-10-2011, 01:58 AM   #3
showrun
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you, fireza!

Yes,the solaris VM OS has been shutdown,but the instance(or the vm process)is still alive!

In my environment, I need to support solaris sofeware poweroff like it running on real physical machine,
not use Host external command or KVM tool to destroy VM instance.
 
Old 08-10-2011, 03:51 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
qemu issues an acpi shutdown command. If the guest OS cannot support it for some reason, this is the problem of the guest OS.
 
Old 08-10-2011, 08:20 PM   #5
showrun
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Dear dyasny:
You said that was solaris OS problem. But I don't agree as the acpi manager of solaris work well in vmware or my physical machine.
Maybe QEMU needs a special way for solaris ACPI solution, or solaris need extra acpi driver for shutdown and finally power off. Just guess.
 
Old 08-11-2011, 04:20 AM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
What you say is possible, however, since Linux and Windows guests can easily shutdown under qemu-kvm, I don't see why a special implementation should be required for x86 solaris. Instead the OS should be able to support standard ACPI calls.

BTW, do you see anything when you issue a shutdown command in the guest OS logs? Maybe you're hitting some known bug?
 
Old 08-11-2011, 10:13 PM   #7
showrun
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
To dyasny:
According to your suggestion, I have done the following operation:
1. deleted '/var/adm/messages' file all contents.
2. shutdown solaris and reboot it soon.

Then I opened '/var/adm/messages' , All the contents I can collectd as follow:

[ID 564983 daemon.error] rpcbind terminating on singal
[ID 672855 kern.notice] syncing file systems...
[ID 904073 kern.notice] done

---------------
That'all!

Did I barking up file,system Error doesn't write into '/var/adm/messages'?

Last edited by showrun; 08-12-2011 at 02:44 AM.
 
Old 08-12-2011, 07:02 AM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
no idea, I'm not a solaris expert, of fan. What you could do is join the linux-kvm and the qemu mailing lists and ask there, maybe the developers would have a better idea
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help:cannot poweroff VINSTAR Linux - Newbie 3 02-11-2008 09:49 AM
Poweroff digger95 Slackware 13 11-04-2007 07:43 AM
poweroff Poszukiwacz Ubuntu 2 08-17-2005 05:10 AM
how to poweroff ?? perdesiz Linux - Laptop and Netbook 5 12-29-2004 03:31 AM
poweroff praveen_2003 Linux - Software 1 07-13-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration