Linux - Virtualization and CloudThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am using Xen in CentOS 5.4. The guest vm is Centos 5.4 as well. How can I specify boot parameters before I can boot the VMs. I seem to have forgotten the root password for one of the VMs I created. I want to boot it into repair mode and change the password. Please suggest me the best way to achieve this.
Also, I tried to mount the vm disk image file but failed.
My question has everything to do with virtualization. I think you did not understand my problem well enough. I can't access the centos vm after booting it because I forgot the root password I set. So there is no way of modifying the grub config. I want to be able to pass a boot parameter, i.e., "single" so that the vm boots into single user mode which does not require a password. I could change the root password then.
I managed to mount the vm image file very painfully and have edited the config and set a new password. But I'd still like to know if and it is possible to pass boot parameter to guest linux guest vms beforehand. I tried using the "extra=whatever you want" line in vm config file but didn't work.
I'm afraid you do not understand what virtualization is, and how it works. You cannot pass OS level commands like that, unless the guest OS has a daemon listening for the command (usually over the hypercall device or simply over a network socket).
you can also pass keystrokes using qemuMonitor sendKey commands, but that's all.
Correct me if I'm wrong, but maybe you're just not bringing the console up fast enough, to be able to stop the grub prompt and enter the "single" option. In that case, it is possible to start qemu in paused mode, bring up the VNC console, and then unpause the VM, which gives you enough time for everything.