CentOS 5 Server :: Xen Run Existing Vista Partition In DomU
Oct 8, 2009
I have CentOS 5.3 dual booting with Vista on a machine with AMD-V support. I'm looking to get my existing Vista partition running as a DomU Xen machine. Can this be done without having a dedicated video card?I've got a Xen kernel (from the repositories) installed and running perfectly with my nVidia graphics card. I tried to set up a new DomU through virt-manager and set it up as Vista, pointed it at the physical partition (fakeRAID mapper device) and gave it 2Gb RAM (I have 8Gb total). I got it to do a PXE network boot, knowing that this would fail and therefore no installation would be attempted, as no installation is needed.
This worked well in that the initial PXE boot failed and the machine shut down. When I start it now it seems to actually boot Vista, but I just can't see it! It goes as far as saying "Booting from Hard Disk..." in the viewer window and then doesn't update, although the disk activity and CPU usage are very similar to a machine booting Vista to the login prompt.
Problems with xen 3.1.2 creating and installing domU CentOS 5.5 I am trying to do a virt-install --prompt --paravirt, and the install error out while trying to download install RPMs. I have googled for xen centos virt-install and various permutations. I have found similar howtos for 5.4 and 5.3, but they resulted in the same outcome. I did find several posts with similar issues, but no solution was posted.[URL]..
At present, In web server 97% space has been occupied in /usr/share/squirrelmail partition. Therefore, we need to increase the partition of our existing storage device (NAS Storage box) either by creating new partion or merged the same along with the existing partition. Local Partition Map on Mail Server.File System Name Mount Point Size (1K Blocks) Remarks
We have two CentOS 5 servers in production (web and database). We are setting up a single staging server that will mirror the configurations of these servers as closely as possible. What is the easiest way to ensure the exact same software and configs as the production servers are setup on the new staging server. Our contracted data center provider has already informed us that they do not perform images and NO we do not have physical access to the machines. It is undetermined whether we will be virtualizing the staging server into two virtual servers yet, so for the purposes of this post lets assume we are not. I'm seeking a faster/more precise method than doing this by eye and hand.
I installed Centos5.2 and have created 1 instance so far. It all works great, but when I created the new instance (using command line from ssh and "virt-install") it gave a message saying probing for video, not found, assuming headless and on I went with the install.
But now I have need for a framebuffer because I have a JBOSS/Java Captcha routine which throws an error if it can't use the X11 libraries or some such (I've resolved this before on a headless Amazon instance once by just running "Xorg"). But I can't run Xorg on my DomU because it can't find the fb device!
So, I searched around and did a makedev -d /dev/fb to create it, but it still doesn't work, because, I assume, the hardware isn't found anywhere. So... how do I get Xorg to work in this case? Or do I need to re-do the virt install and somehow force it to find video hardware (but how?)
Here is some salient output:
root@virty{/etc/X11}: uname -a Linux virty 2.6.18-92.1.22.el5xen #1 SMP Tue Dec 16 12:26:32 EST 2008 x86_64 x86_64 x86_64 GNU/Linux root@domU{/etc/X11}: uname -a
is there a way to clone an installation? I have a couple "master systems" which I want to replicate into other servers. In Solaris I can build a flar image from the first one and install from that image, I looked into cobbler and koan, but they seem to be more repo and kickstart oriented.I need a way to say "take this system as a base and build an installation image out of it".
I have a problem with a VM running Centos 5.3 on a Centos 5.2 hypervisor. Any kernel install makes the system unbootable and I have to copy an old /boot directory to get it to boot again. After some investigation I found that grub was always failing. These are the partitions I have. xvda is the OS virtual drive. xvda1 is the /boot partitition and xvda2 is the LVM partition. A standard default install.
Apparently, this file could be suspect. But it seems to be OK according to what I have read. cat /boot/grub/device.map # this device map was generated by anaconda (hd0) /dev/xvda
If I try to re-install grub I get... Attempt 1) grub-install hd0 /dev/xvda1 does not have any corresponding BIOS drive.
Attempt 2) grub-install /dev/xvda expr: non-numeric argument /dev/xvda1 does not have any corresponding BIOS drive.
Attempt 3) grub-install --recheck hd0 Probing devices to guess BIOS drives. This may take a long time. No suitable drive was found in the generated device map. Reverting to backed up copy.
Attempt 4) grub-install --recheck /dev/xvda Probing devices to guess BIOS drives. This may take a long time. No suitable drive was found in the generated device map. Reverting to backed up copy.
Attempt 5) grub Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory) [Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> root (hd0,0) root (hd0,0) Error 21: Selected disk does not exist
This is my grub.conf file... # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that all kernel and initrd paths are relative to /boot/, e.g. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/xvda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-128.1.6.el5xen) root (hd0,0) kernel /vmlinuz-2.6.18-128.1.6.el5xen ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-128.1.6.el5xen.img
I'm running a CentOS 5.2 on dom0 and two CentOS 5.2 on domU.The domU use virbr0.I install domU via GUI interface and did not change anything ... the domUcan ping and connect to dom0 but can't access to Internet !!I search google and find someone mentioned that I need to enable IP forwardin dom0 ... I did but my domU still can't access to Internet.What else I need to do ?The routing table of dom0 is:
# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
System: Lenovo R61i, that had Ubunta installed, removed and Vista Home Pre. installed. Plenty of hardware power. Want to install a Knoppix 6.0.1 from an existing CD I have. I want to be able to run both systems on the laptop (dual boot)? I have partitioned the hard drive using vista, so there is now a partition that I believe is Lenovo rescue, the main large C space, and the new partition about 6.4 gb that vista shrank out that is not assigned. When I try to install the Knoppix it just keeps loading in and ends up running live off the CD without installing to the hard drive.
I have stopped the loading sequence in different places, but don't know what to enter or where. I also wanted to install it onto my 64 gb flash drive that has nothing installed but comes up showing that it is fat 32. I have tried to install to the flash drive from the live running Knoppix under install to usb drive, it finds the drive, I select it, and the next window says there is no such file. So, that's my story and I'm stickin to it. All I want to do is get this system onto the laptop or flash so I don't ever have to deal with Microsoft Windows again!
I installed CentOS 5.5 x86_64 on server as xen dom0. When i try to install CentOS 5.5 x86_64 as guest (hardware virtualization) i see "Kernel panic"...Installation not started: i see install cd's boot menu, press Enter... that's all.
Dom0 kernel: 2.6.18-194.26.1.el5xen, xen 3.0.3 Only standart installation, repo's and update's...
Right so my situation is a little obscure and from all the posts I've read through I can't find one that suits me well enough.My PC's hard drive recently went on the fritz so I backed up all my data, got a brand new Terrabyte hard drive and then put all my stuff on there. I also plugged in the fault drive as a secondary and ahev cleared most of the stuff off it. It's separated into two partitions; E: and F: but together make about 600 gigs. I then have two external Terrabyte hard drives, it's a long story but their connected via USB.
Now I really like the idea fo getting to grips with Linux. I don't want to use a LIVE CD, I've done that already and I want to see how I get along using it as a proper OS. I also really need to keep the Windows Vista for several reasons, most importantly for iTunes which I use to keep my iPhone and iPad up to date and I've heard iTunes and linux don't get along too well, even with programs like WINE. So obviously I'm looking to dual boot and keep all my data but what would be the best way to go about it? Stick it on my primary drive? Or on my slightly faulty drive? Or on one of my two externals? On the bright side, because I'm on a fairly new hard drive, my Vista runs really smoothly, and so I shouldn't encounter too many bugs that windows is renowned for a long the way...
I'd also like to be able to access all my data from both OSs so I don't have to keep jumping from one OS to another. Is that possible? or simple to accomplish?I have a pretty good Nvidia graphics card too, so I'd appreciate it if someone could explain how I get XGl working on Fedora once it's all set up.
I have an existing unix user that some how didnt make it into the copy over to our LDAP server. How do I add an existing unix user to an existing LDAP directory? Will ldapadd work? I was under the impression ldapadd required an ldif file to work properly.
I'm using virtual network (NAT network) for my domU.When I change dom0's firewall setup, the domU will fail to connect to Internet anymore.So far, the only way to bring the network back is reboot dom0 !I try to restart service network and libvirtd on dom0 ... it doesn't work.How can I bring the domU network back without reboot dom0 ?
I'm trying to learn Linux and have created a VMWare guest operating system using CentOS 4.8. I expect the next step is to install ssh in order to transfer files to the server but as of yet I haven't figured out how to assign it a host name or how to effect a transfer.
I can't be the first one with this problem. What am I missing?
I have setup Samba servers in the past, just none under SELinux. The last one I configured was a couple years ago, so I wouldn't doubt I'm a bit rusty.
---- Environment summary: Clean server install of CentOS 5.4 includes SELinux - lets call this 'server' - updated samba to 3.0.33-3.15.el5_4.1
Client1 - Windows XP sp4 - WINS configuration uses 'server' noted above Client2 - Windows Vista - WINS configuration uses 'server' noted above
---- What works / what doesn't ------ Clients can see the server (XP and vista) in network neighborhood. The following does not work from windows (xp or vista) net view net view \server net view \server-ip net view \servershare
This does work on the server smbclient -L \server smbclient -L \server --user validuser smbclient -L \client1 --user validuser
---- What I have configured and tried (config/output below) -------- firewall ports for samba are open SELinux enforcing or permissive file context is set on share samba booleans are set
***firewall -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p udp --dport 139 -j ACCEPT
***SELinux mode/booleans # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
# getsebool -a | grep smb allow_smbd_anon_write --> off smbd_disable_trans --> on
# getsebool -a | grep samba samba_domain_controller --> on samba_enable_home_dirs --> on samba_export_all_ro --> off samba_export_all_rw --> off samba_share_fusefs --> off samba_share_nfs --> off use_samba_home_dirs --> on virt_use_samba --> off
I have CentOS 5.5 distribution with Dom0 and DomU installed. I try to access Dom0 files during vsftpd server from DomU during ftp client. I successfully login with root and simple user, but when I try to list (or cd to some directory) in user home the SELinux prevent it from me. I get this in audit.log:
Two days ago I repartitioned my laptop HD and added the latest Ubuntu (2.6.35-25-generic) to the existing Vista and existing Ubuntu (2.6.32-28-generic via upgrades from 9.14(?)). Prior to this install it was using Grub with menu.lst from the old/upgrade Ubuntu. After the install the boot menu labels the partition with Vista as the Windows Recovery partition and the recovery partition item is no longer present.
At first I wondered how I could get Vista to boot. I found that SuperGrub cd would boot it OK. Then, it dawned on me that the boot menu item was not the recovery partition, but instead the Vista OS partition mislabelled . Vista loads just fine from it. The recovery partition is no longer listed as it was with Grub/menu.lst. SuperGrub will not boot the recovery partition, showing an error "missing BOOTMGR".
I installed XandROS on my vista machine. I can access the Windows partition from Linux but in Vista I cant see the Linux partition...is there anything I can do about that?
i tried installing windows 7 on a partition on my laptop but i'm getting this message:"setup was unable to create a new partition or locate an existing system partition "i tried googling and found that it has something to do with the number of partitions:my hard disk layout right now:
Trying to clean install 11.2 dual boot with Win xp already installed. How do I create a new home partition, don't want to preserve the existing home partition from a previous attempt. DVD installation and automatic config keeps saving the thing.
How can I increase the size of a server partition as /dev/loop0
Disk informationDeviceMount pointUsage /dev/loop0/var/tmp2% (11,070 of 495,844) /dev/sda1/46% (100,819,056 of 233,872,292) /usr/tmpDSK/tmp3% (11,070 of 495,844)
I use
WHM 11.30.1 (build 4) CENTOS 5.6 i686 standard on ds-59085
I have configured a kickstart file where it will ask for the hostname, ipaddress and so on from the user and will proceed further.But I would also like to detect the keyboard, mouse and language and provide it to the user so that he can select the required options.Do I have to call any existing CentOS scripts from ks.cfg file?or if any one has developed any scripts or can any one give me any inputs for it.
I sudo apt-get uninstalled a bunch of stuff I shouldn't have. Now my Ubuntu Partition doesn't boot up correctly, something about the graphic system, video system, etc. all being unconfigured. (I'll get the exact error later.) All I can use is the command line.can I install Ubuntu over my old Ubuntu partition without messing up rebooting/GRUB and all that?
I am running ubuntu 10.10 on a drive with 3 partitions. 1 windows and 2 ubuntu partitions.
The ubuntu that I am running right now is on a partition that is too small. I need to either expand it to include the other ubuntu partition or reinstall 10.10 and copy my existing partition to it. Can this be down?
I have this version working the way I like it and have tried 11.04 and am holding of for now. Still the fact remains that my working copy is on a partition that is really too small I only have 2 gig free space on a drive that is a 500gig.
I have a doubt with how to add un-used space in my RHEL 4.0(linux) server to a existing partition. I will explain the scenario:-I have some 220 GB space on my linux server as shown by the command as below-
I am trying to replace an existing ubuntu installation with the current debian testing release. But when it comes to select partitions to install on none of the existing partitions is visible. I only see my SATA hard drive empty. The existing installation of Windows is still bootable and fdisk as well as cfdisk correctly recognize the partition table while parted (which I assume is used by the installation process; all tools run from a live cd) is not:
[root@localhost liveuser]# parted /dev/sda unit s print Error: Can't have overlapping partitions.
I am not sure what parted's error message means. I can hardly imagine that it complains about the logical partitions with in the extended one. The reasons for the trouble might come frome the fact that sda4 is marked as primary partition (see cfdisk output). If this is the case, how can I repair this?
What I am trying to accomplish, is have 3 partitions on my hard drive. The first one being Windows 35GB. The second being 15GB Ubuntu. The remaining just being backups. I have set up partitions for this, but I have failed thus far in finding a way to install to the Ubuntu partition I have created. Should I have left that space unallocated? How would I make this work?