Auto-start of VM Guest Machines when OVM host starts.
Greeting Experts,
I need to ask workaround for auto-start of guest virtual machines whenever OVM host starts.
Please advice.
Thanks & Regards,
Sharjeel Mojib
There is no supported way of doing this in OVMM. If you'd really wanted to take that route, there is, of course a way to achieve this.
First, you will have to get a hold on the ID of your guest, that you want to start. You'll get that from OVMM
You could then use the rc.local script to have Xen start your guest at startup by adding this to the end of rc.local
/usr/sbin/xm create [Path to Repository]/Guest_ID/vm.cfg
This should start up your guest, assuming that the storage repository is available at this point, which it should. OVMM will pick up the guest's state when it queries the ovs-agent on that host.
Again, this is totally unsupported!
Similar Messages
-
Not able to start the guest machine
Hi,
When I tried to start a guest either from VM Manager or using xm create vm.cfg' it is giving me this error saying cannot be mounted as loop device /dev/loop100 is already used in guest domain.
PowerOn VM: INSYBVL1 failed:<Exception: return=>failed:<Exception: xm create '/OVS/running_pool/INSYBVL1/vm.cfg'=>Error: Device 768 (vbd) could not be connected. File */OVS/running_pool/INSYBVL1/System.img is loopback-mounted through /dev/loop100, which is mounted in a guest domain, and so cannot be mounted now.* > StackTrace: File "/opt/ovs-agent-2.2/OVSXXenVM.py", line 57, in xen_start_vm run_cmd(cmd) File "/opt/ovs-agent-2.2/OVSCommons.py", line 97, in run_cmd raise Exception('%s=>%s' % (cmd, p.childerr.read())) > StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 86, in start_vm raise e
/var/log/messages showing these messages when I tried to start the guest. The last line saying /etc/xen/scripts/block failed. No idea what exactly that mean.
Aug 9 10:29:04 ed1 kernel: device vif27.0 entered promiscuous mode
Aug 9 10:29:04 ed1 kernel: audit(1281320944.247:94): dev=vif27.0 prom=256 old_prom=0 auid=4294967295
Aug 9 10:29:04 ed1 kernel: xenbr0: port 6(vif27.0) entering learning state
Aug 9 10:29:04 ed1 kernel: xenbr0: topology change detected, propagating
Aug 9 10:29:04 ed1 kernel: xenbr0: port 6(vif27.0) entering forwarding state
Aug 9 10:29:04 ed1 logger: /etc/xen/scripts/block: File /OVS/running_pool/INSYBVL1/System.img is loopback-mounted through /dev/loop0, which is mounted in a guest domain, and so cannot be mounted now.
Aug 9 10:29:04 ed1 kernel: device vif27.1 entered promiscuous mode
Aug 9 10:29:04 ed1 kernel: audit(1281320944.311:95): dev=vif27.1 prom=256 old_prom=0 auid=4294967295
Aug 9 10:29:04 ed1 kernel: xenbr0: port 7(vif27.1) entering learning state
Aug 9 10:29:04 ed1 kernel: xenbr0: topology change detected, propagating
Aug 9 10:29:04 ed1 kernel: xenbr0: port 7(vif27.1) entering forwarding state
Aug 9 10:29:05 ed1 kernel: loop108: fast redirect
Aug 9 10:29:08 ed1 kernel: xenbr0: port 6(vif27.0) entering disabled state
Aug 9 10:29:08 ed1 kernel: device vif27.0 left promiscuous mode
Aug 9 10:29:08 ed1 kernel: audit(1281320948.951:96): dev=vif27.0 prom=0 old_prom=256 auid=4294967295
Aug 9 10:29:08 ed1 kernel: xenbr0: port 6(vif27.0) entering disabled state
Aug 9 10:29:08 ed1 kernel: xenbr0: port 7(vif27.1) entering disabled state
Aug 9 10:29:09 ed1 kernel: device vif27.1 left promiscuous mode
Aug 9 10:29:09 ed1 kernel: audit(1281320949.031:97): dev=vif27.1 prom=0 old_prom=256 auid=4294967295
Aug 9 10:29:09 ed1 kernel: xenbr0: port 7(vif27.1) entering disabled state
Aug 9 10:29:09 ed1 kernel: loop108: dropped 0 extents
Aug 9 10:29:09 ed1 logger: /etc/xen/scripts/block: xenstore-read backend/vbd/27/768/node failed.
Aug 9 10:29:09 ed1 logger: /etc/xen/scripts/block: /etc/xen/scripts/block failed; error detected.
losetup -a showing the following mounted loop devices on the server
/dev/loop0: [0830]:895112952 (/OVS/running_pool/1031_inpeajl3/System.img)
/dev/loop1: [0830]:150668971 (/OVS/running_pool/1031_inpeajl3/INPEAJL3_DISK.img)
/dev/loop10: [0830]:709662 (/OVS/running_pool/275_SERVER_5/System.img)
/dev/loop11: [0830]:895108210 (/OVS/running_pool/OPENFILER01/System.img)
*/dev/loop100: [0830]:709665 (/OVS/running_pool/275_SERVER_5/ovdk_win_vm1.img)*
/dev/loop101: [0830]:580814 (/OVS/running_pool/278_vis12110/System.img)
/dev/loop102: [0830]:524891 (/OVS/sharedDisk/server_5_disk.img)
/dev/loop103: [0830]:580810 (/OVS/running_pool/281_vis12000/System.img)
/dev/loop104: [0830]:524890 (/OVS/sharedDisk/vis1200_1.img)
/dev/loop105: [0830]:524889 (/OVS/sharedDisk/vis1200.img)
/dev/loop106: [0830]:709762 (/OVS/running_pool/390_INPENAW1/System.img)
/dev/loop107: [0830]:709765 (/OVS/running_pool/390_INPENAW1/ovdk_win_vm1.img)
/dev/loop110: [0830]:800542537 (/OVS/running_pool/OPENFILER01/DISK2.img)
/dev/loop111: [0830]:150668974 (/OVS/running_pool/OPENFILER01/DISK3.img)
/dev/loop112: [0830]:800538044 (/OVS/running_pool/OPENFILER01/DISK1)
/dev/loop113: [0830]:580765 (/OVS/running_pool/193_VIS1151020/System.img)
/dev/loop114: [0830]:524884 (/OVS/sharedDisk/VIS115102_Disk1.img)
/dev/loop115: [0830]:800787660 (/OVS/running_pool/193_VIS1151020/VIS115102_Disk2.img)
looks like /dev/loop100 is already used by another guest. However why my new guest is trying to use the loop device which is already used by another guest machine.
Current kernel version of my vm server is
Linux ed1 2.6.18-8.1.15.1.16.el5xen #1 SMP Fri Aug 1 18:27:30 EDT 2008 i686 i686 i386 GNU/Linux
Regards
Balaji VHi,
Your xm kernel indicates you are still using 2.1.5 OVM.
The error could be that in the older xm scripts there was an error with /etc/xen/scripts/block.
Not sure if this applies to OVM 2.1.5 but it could...
If possible I would upgrade to OVM 2.2.1
and would try again if the error reoccurs...
(Unfortunately after upgrading and rebooting the server the error will be gone anyway)...
Sebastian -
Auto boot Guest Domains when control domain is restarted
We have a user who has asked us to set up the LDOMs to boot when the host machine boots up.
Can this be done?
All I found was this setting
ldm set-variable auto-boot\?=true goldldom
Or, do I need to write a script to do this.http://www.opensolaris.org/jive/thread.jspa?threadID=109629&tstart=0
"If you save your configuration to the SP (ldm add-config foo) while
the guest domains are active then they will start & boot when the
system is powercycled (assuming auto-boot? is true also)." -
How to turn off iTunes auto-start when iPhone connected?
The option "Open iTunes when this iPhone is connected" is disabled (grayed out) in iTunes 10. The grayed-out check box is unchecked, yet iTunes starts every time I plug in my iPhone 3G. I would like to be able to plug in my phone without iTunes starting. Is there a way?
Right. Un-checking the preference to prevent auto-sync re-enabled the auto-start option. Then I was able to check and un-check the auto-start option and re-check the prevent auto-sync preference. Now all seems well. Despite appearances (the un-checked option), the internal setting was in the wrong state and twiddling it seems to have set things right.
What a boneheaded user interface, where items on widely separated parts of the UI affect each other invisibly. -
AUTO START WHEN CONNECTED In Backup, NAS to USB AUTO START WHEN CONNECTED: What does this actually mean, in BACKUP of Dashboard? Will it auto sync every time a change takes place on the NAS? Or must the USB be removed and reinserted into the USB port on the MCM?
No, the clue's in the name It's a one-off single process, just triggered by the drive connection rather than by manual starting via the dashboard. When you connect the drive, it will trigger the backup, which will then proceed to the end and stop just as if you had manually started the backup. But at the end, if you want to backup again, you have to either manually restart it or disconnect and reconnect the drive. As it stands today, there is no "auto sync" option within the dashboard between the built-in drives and USB connected ones. It can be set up using SSH and a cron job, but that will be messing aroud with the NAS at the base command line level and will probably invalidate your warranty if things go wrong. Have a look through the suggestions thread as this kind of question (sync'ing in general, not specifically NAS<>USB) comes up quite regularly and has probably been made there, where you can support it and comment yourself.
-
How to auto start services like apache in a zone when i boot it
Current i have a zone that has a web service configure and it runs fine with "/etc/init.d/apache start"
but i would like to auto start it like a service when the zone boots.
correct me if i am correct but i think it should be in a start up script.
please advise me on how to achieve the above
thanks
r@ymondI suggest taking a closer look at http://docs.sun.com/app/docs/doc/817-1985/6mhm8o5n0?a=view which explains the whole booting process in detail.
Apart from that you may also want to check the "ln" manualpage (ln(1)) which explains how to make symlinks on Solaris. After that it should be relatively easy; you basicly create a (sym)link in the right directory and then you're homefree. -
Auto start of db when it goes down
Is there any way using script to start database when it goes down due to some unexpected reason on windows platform?
Oracle 10g
Windows 2003 ServerHi,
Create your own batch script that does the below things
1) Make a connection to Oracle to see if database is up.
2) If not then start the database.
I would be better checking why Oracle database is going down too frequent rather doing auto start.
Regards
Anurag Tibrewal. -
Auto start Front row when insert DVD
Bonjour,
May the subjet has been already discussed, but is anyone
know an applescipt that can auto start front row when a DVD is
loaded?
Thank youI couldn't get this suggestion to work on two different Macs. I don't think the Front Row.app is handled the same way as other applications. For example, you can't launch Front Row by double clicking on it inside the CoreServices folder.
-Doug -
Stop Napster Auto Starting when I connect my
I wonder if anyone has any tips about this one...
When I first connected my ZMP I accidentially chose "always start Napster to syncronise" from the auto start list.
Normally I choose "don't do anything" but I chose Napster by accident this time.
Anyway - normal autostart removal techniques dont work with the ZMP...
Anyone any ideas how to stop this auto starting?
cheers!
dj_TWhen connecting your MicroPhoto, the "MTP icon" will appear in your taskbar briefly. Double-click that icon to bring back the "MTP Media Player" autostart box; you can then change the option. I suggest you choose "Take no action" and keep the "do this every time" option on; that means it won't autostart any application.
You can also download the TweakUI application for WinXP from Microsoft and use it to change your player's autostart options. -
How to stop an app from auto starting when signing on?
how to stop an app from auto starting when signing on?
Several point :
1st : do you select "auto relaunch" application when you close ML last time? don't do that next time
2nd : in system preferences/Users and Groups look at applications that are selected for automatic opening. You can remove application. Tab called "Open At Login"
3rd : have a look at /Library/LaunchDeamons/
4th : buy Lingon
Hope it can help -
Paravirtualized Guest Machine from an OEL 6 GA Install Media iso?
Is it possible to create a paravirtualized guest from an Oracle Linux 6 GA iso?l
I would prefer a jeos image but I have not been able to find one.
I have tried this using the vm server as the nfs server with no success.
vm server 2.20
cp oel6.iso /OVS/ios_pool/
cd /OVS/iso_pool/
mkdir /OVS/iso_pool/iso
mount -o loop oel6.iso iso
vi /etc/exports
/OVS/iso_pool/iso *(rw)
service nfs restart
When creating the guest machine I choose paravirtualiezed and enter the following nfs entry:
nfs:server-name/OVS/ios_pool/iso
or
nfs:server-ip-address/OVS/ios_pool/iso
I receive the following in the log:
=============================================================================
Check memory, mac address and networktype
Register virtual machine img
Register virtual machine geninfo
Register virtual machine networks
Register virtual machine disks
Create PVM
Failed. Result -failed:<Exception: failed:<Exception: ['virt-install', '--paravirt', '--name=2971_oel6', '--ram=1024', '--vcpus=2', '--vnc', '--vnclisten=0.0.0.0', '--vncpasswd=/tmp/tmpcz2RA3', '--noautoconsole', '--location=nfs:10.0.6.177:/OVS/iso_pool/iso', '--keymap=en-us', '--mac=00:16:3E:42:AF:50', '--bridge=vlan10', '--file=/var/ovs/mount/D684E789EFE44A1181C387168A518F9A/running_pool/2971_oel6/System.img', '--file-size=5.0'] => ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.Njoyex/images/xen/vmlinuz'
>
StackTrace:
File "/opt/ovs-agent-2.3/OVSXXenVMInstall.py", line 317, in xen_install_vm_para
run_cmd(args=cmdlist)
File "/opt/ovs-agent-2.3/OVSCommons.py", line 69, in run_cmd
raise Exception('%s => %s' % (cmdlist, p.childerr.read()))
>
StackTrace:
File "/opt/ovs-agent-2.3/OVSSiteVMInstall.py", line 197, in install_vm_para
else: raise Exception(rs)
=============================================================================I've got a few OL6 guests up and running on my OVS 2.2.2 servers now. I managed to convert one of them to a PV guest by hacking together a vm.cfg.
The dmesg|grep -i xen shows me that the guest kernel is running in paravirt mode.
My problem is the OVM Manager is still showing this guest as a fully virtualized guest. Is there a better/proper way to convert an HVM guest to PV guest?
Here is the dmesg output:
h4. [root@prdjboss01 ~]# dmesg|grep -i xen
Xen: 0000000000000000 - 00000000000a0000 (usable)
Xen: 00000000000a0000 - 0000000000100000 (reserved)
Xen: 0000000000100000 - 00000001f4000000 (usable)
#1 [00050e7000 - 0005114000] XEN PAGETABLES ==> [00050e7000 - 0005114000]
#5 [0004144000 - 00050e7000] XEN START INFO ==> [0004144000 - 00050e7000]
Booting paravirtualized kernel on Xen
Xen version: 3.4.0 (preserve-AD)
Xen: using vcpu_info placement
Xen: using vcpuop timer interface
installing Xen timer for CPU 0
installing Xen timer for CPU 1
xen_balloon: Initialising balloon driver.
Switching to clocksource xen
input: Xen Virtual Keyboard as /devices/virtual/input/input1
input: Xen Virtual Pointer as /devices/virtual/input/input2
XENBUS: Device with no driver: device/vbd/768
XENBUS: Device with no driver: device/vbd/832
XENBUS: Device with no driver: device/vbd/5632
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Initialising Xen virtual ethernet driver. -
Auto Starting E530c and E545 laptops
I have been trying for ages to get both of these models to auto start for updating purproses. These machines are stored in a cart so no matter what route I took, I enabled them to stay on even when the lid was closed. This cart is wired with network and power to each laptop as well. The routes I have taken:
1. Wake on Lan. At best this works 20% of the time. I set each laptop up, test it and then put it back into the cart. Once the cart is full, I do a full WoL test and every single unit turns on. I leave for the night and let the scheduled task try to turn the laptops on overnight... most don't. I have been pulling my hair out, changing settings all over the place but it always works in limited tests but then never works in mass.
So I looked into other options:
2. RTC Alarm (aka: Auto power on at a certain time in bios)... but this setting is not in the bios. At least, I can't find it. If it is there, please let me know. There is a good chance I am blind!
3. I would even take just auto turn on when AC power is plugged in. Again though, I can't find any option in the bios for either unit.
So... is there some secret setting to making WoL work all the time? Is there a RTC alarm setting in bios? Is there an auto turn on when AC power in bios? Any of those solutions would work for me!
Thanks!I was wondering if was something to do with VLANs being mucked up, since I only use 4 (it tells me I can't use more than four if I try to use more), plus it used to all work until a power interuption.. hah!
would removing vlan.dat then a reload force the router to re-write without any suspected problems ?
I've just pulled off all the encryption, and vlan3 works, but simple wep back on... and the client can't see the dhcp-offer going back.... -
Ovmcli change ip on guest machine (running Windows XP)
Hello,
I'm new to OracleVM but find it very useful.
We had previous expierences with VMWare virtualization in our company
(VMWare server 2.0). It had VMWare tools which included cli (command line interface).
I need to change IP address of Windows XP guest machine.
To be exact: our guest machine is running windows XP, our host is Oracle VM.
We want to change IP from let's say: 10.60.60.200 to 10.60.60.201 on our guest machine running XP.
In WMWare we used:
$command = "netsh interface ip set address LAN static 10.60.60.200 255.255.255.0 10.60.60.1 1";
and a command that fired the action $command:
vmrun -T server -h HOST_IP_ADDRESS -u HOST_USER -p HOST_PASSWORD -gu GUEST_USER -gp GUEST_PASSWORD runScriptInGuest "DATASTORE TEMP/xxx.vmx" cmd /c & $command;
Is there something similar to "runScriptInGuest" or is there any other way to change IP of guest machine in Oracle VM?
I tried to use
ovmcli with:
vm nic conf
but the options don't include changing IP.
As far as I can see there is only:
--serverpool_name
--vm_name
--nic_name
--new_nic_name
--bridge
--rate_limit
--enable_qos
--disable_qos
options available for configuring network interface adapters.
BertThe problem with changing IP inside the virtual machine (windows XP) is that
we use dynamic virtual machines. By 'dynamic' I mean that we have a set of templates that
we clone, start, configure and then run application tests on them. The purpose of all
this is that we want to have identical operating environement for all tests. In this way
we can relate to results as done on exactly the same computer.
The whole process (cloning, starting, configuring, restarting, running application tests and then pausing VM) is done
from scripts - so we CANNOT just manually log via VNC into machine and change it's IP.
We tried to use STAF (http://staf.sourceforge.net/) but it operates on IP
so we can run with this tool any task except changing machine's IP.
(STAF doesn't deal with the change of IP in time.
Apart from this it sends response with new IP when
server excepects response from old IP).
Summerizing - runScriptInGuest from VMWare solved the problem for us
because it ran a CONSOLE command inside Windows Guest
which changed the IP. runScriptInGuest doesn't rely on
machine's IP so everything ran smooth.
Is there any other way to change this ip
from SCRIPT. I mean some way to run this command
remotely on windows or do this through OracleVM virtual machine configuration ?
I hope it clears the question.
Bert -
Oracle 11g XE won't auto start
Installed XE (11g) on a XP machine. When system is restarted listener service starts but DB service doesn't. It is set to auto start. If I manually start the DB service it starts without issue and we can use the system.
I've even set the service to try to restart in case of a failure (to see if that made a difference.....nope).
Any ideas?Hi,
What's set to registry?
HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE -> [HOME0] -> ORA_[SID]_AUTOSTART
Regards, -
VM auto start in a single server pool with only local hard disk repository
I searched the forum but can't find anything similar.
Basically, part of the dev environment I have is just starting to use Oracle VM to have a nice centralized place to manage the VMs and managed server.
Those environment doesn't have shared storage and all VMs are stored under local hard disk. (as just having several VMs to share the resource in a single server)
So there is only one server in the server pool.
What should be the best way to set up VM auto-start when this single server is rebooting or start from boot up?
Should I just set up a symlink of /OVS/running_pool/vm1/vm.cfg to /etc/xen/auto/vm1.cfg ?
(p.s. I can't set up HA mode in the single server pool since this is ocfs2.local, it will fail)
Thx in advance.After some testing, I'm now using a traditional way (for single server with local repository)
auto start VM in dom0 during server starts up:
ln -s /OVS/running_pool/vmname/vm.cfg /etc/xen/auto/vmname
auto shutdown VM in dom0 during server shut down:
- edit /etc/sysconfig/xendomains
change the line:
XENDOMAINS_SAVE=/var/lib/xen/save
to
XENDOMAINS_SAVE=
I also change XENDOMAINS_RESTORE from true to false
Now when I need to reboot/power down the server via OVM, I can just go ahead and do it without migrating..and xendomains will shutdown all my VMs and start them up next time.
Maybe you are looking for
-
Cache issue in database query while executing VO
Hi, I have a table where I am creating new rows using AddNewRow button and on clicking save button, row gets stored in database. I created a VO which will fetch rows from table based on binding variables. When I execute the same query using sql works
-
Inconsistent Dev System: Infosource assigned to incorrect Source System
Hello all Our Development box contains inconsistent assignments of infosources to source system. When I compare the dev, quality and production boxes I find: > Quality and Prod are consistent and all infosource systems are assigned to correct source
-
Display Listviewwebpart dynamically using jQuery
I want to show different list/library view (LVWP) dynamically on button click. The solution Display List dynamically is not working for SharePoint 2013.Seems that it is only for MOSS 2007 Please help Thanks
-
Can't turn off Verbose Mode after running disk defrag in minimal environment using Drive Genius 3
New to posting on here. I'm using a Mid-2009 15in MacBook Pro 2.8 GHz Intel Core 2 Duo 4 GB memory After running Disk Defrag in a minimal environment using Drive Genius 3 my MacBook Pro only starts up in Verbose Mode. I've done my searching on how to
-
EIS dataloads on ASO - missing data during dataloads
We build are building an ASO application with duplicate member names. The member load works fine, but when I load the data, I am missing amounts so some measures are out of balance. In trouble shooting the data, I found if I load just the Agent (leve