Build a vm server to host legacy systems re: SHARED DISK
Posted: 13. Apr 2011, 21:21
First, let me say that I am an old fart. I setup my first UNIX box (AT&T 3B2) in about 1985. I have written some software, some C and lots of PHP, and a kernel driver for a tape subsystem. I know a bit about Unix/Linux, so hopefully, my contribution will be a benefit, and not another rehash on how to install Win7 on a Linux VM.
I manage an aging IT infrastructure that unfortunately contains some older (win 2K server, win 2k workstation) operating systems that are running apps that cannot be upgraded (or even reinstalled! no key!). The hardware is aging, and I fear the worst when the disk fails, as it must do.
I have done some investigation and I am thrilled to report that I can successfully load these OS's on VBox, and the possibility exists to move the existing images (with their complete software installs) to the new VM's.
I am thrilled !
I have run into a couple of problems/questions that I could use some assistance on. I have googled, and not found any direct answers, so I hope someone here can help me shed some light.
PROBLEM 1 - WHICH TYPE OF DISK TO USE FOR A VIRTUALIZED FILE SERVER.
OK, I know, this is not a great idea, but it is where I am forced to go... I tried setting up an expanding VDI, and it was great, until it needed to grow the file, and the slowdown was extraordinary. It was a large file system 50+GB, I had to abandon that idea after several hours of copy copy copy.
The idea of creating a 100GB file to house a file system seemed less than ideal, so I was encouraged to try the shared storage feature. It worked, but to my dismay, all of the files in this filesystem were owned by the user running VBox on the host system.
Q1 ) Would running VBox on the host, as root, allow the guest to save files with the UID of the user on the guest system?
Consider a host running ubuntu 10.10 as user "vbox" UID 1001, and a guest running unbuntu 10.10. Guest has a user "luser" with UID 1100. luser writes a file to a shared disk, and the file ends up with UID 1001, and not 1100. OK, I can see the complications.. Guest could write a SUID root executable to the partition, and log into the host as an unprivileged user, and get root. So I get it. Would running VBox on the host box allow files to be created as the correct UID? This would be ideal.
Q2 ) Is a fixed size disk image the only real option here? I am a little shy of using a disk image, because I am more comfortable with maintaining real filesystems on real disks when it comes to enterprise data. Are images robust enough? Should I not worry?
DOES ANYONE HAVE ANY EXPERIENCE HERE?
I manage an aging IT infrastructure that unfortunately contains some older (win 2K server, win 2k workstation) operating systems that are running apps that cannot be upgraded (or even reinstalled! no key!). The hardware is aging, and I fear the worst when the disk fails, as it must do.
I have done some investigation and I am thrilled to report that I can successfully load these OS's on VBox, and the possibility exists to move the existing images (with their complete software installs) to the new VM's.
I am thrilled !
I have run into a couple of problems/questions that I could use some assistance on. I have googled, and not found any direct answers, so I hope someone here can help me shed some light.
PROBLEM 1 - WHICH TYPE OF DISK TO USE FOR A VIRTUALIZED FILE SERVER.
OK, I know, this is not a great idea, but it is where I am forced to go... I tried setting up an expanding VDI, and it was great, until it needed to grow the file, and the slowdown was extraordinary. It was a large file system 50+GB, I had to abandon that idea after several hours of copy copy copy.
The idea of creating a 100GB file to house a file system seemed less than ideal, so I was encouraged to try the shared storage feature. It worked, but to my dismay, all of the files in this filesystem were owned by the user running VBox on the host system.
Q1 ) Would running VBox on the host, as root, allow the guest to save files with the UID of the user on the guest system?
Consider a host running ubuntu 10.10 as user "vbox" UID 1001, and a guest running unbuntu 10.10. Guest has a user "luser" with UID 1100. luser writes a file to a shared disk, and the file ends up with UID 1001, and not 1100. OK, I can see the complications.. Guest could write a SUID root executable to the partition, and log into the host as an unprivileged user, and get root. So I get it. Would running VBox on the host box allow files to be created as the correct UID? This would be ideal.
Q2 ) Is a fixed size disk image the only real option here? I am a little shy of using a disk image, because I am more comfortable with maintaining real filesystems on real disks when it comes to enterprise data. Are images robust enough? Should I not worry?
DOES ANYONE HAVE ANY EXPERIENCE HERE?