sexta-feira, 29 de outubro de 2010

Ubuntu Bloke: HOWTO: VirtualBox 3.2 "headless" on Lucid Lynx

Ubuntu Bloke: HOWTO: VirtualBox 3.2 "headless" on Lucid Lynx: "HOWTO: VirtualBox 3.2 'headless' on

HOWTO: VirtualBox 3.2 "headless" on Lucid Lynx

As of karmic koala, Vbox 3.x is provided via the standard Ubuntu repositories. Unfortunately, this is the OSE version and it does not appear to work headless.

So, we have to download the "free as in beer" version from the Oracle website, which is currently here

At the time of writing the current build for Lucid is virtualbox-3.2_3.2.4-62467~Ubuntu~lucid_i386.deb

Before we can install the deb, we will also need to install some dependencies.
sudo apt-get install libcurl3 dkms libqt4-network libqtgui4 libxslt1.1 libasound2 \
libdirectfb-1.2-0 libgl1-mesa-dri libgl1-mesa-glx libqt4-opengl libsdl1.2debian \
libsdl1.2debian-alsa libsysfs2 libts-0.0-0 libxcursor1 linux-headers-`uname -r` \
libxdamage1 libxfixes3 libxmu6 libxxf86vm1 tsconf

Now we can install the virtualbox deb that we downloaded earlier.
sudo dpkg -i virtualbox-3.2_3.2.4-62467~Ubuntu~lucid_i386.deb

Next, add your user account to the vboxusers group
sudo adduser brettg vboxusers

Virtualbox machines that you create will by default go in your home directory
/home/brettg/.VirtualBox/

Ensure vboxusers have appropriate permissions to the kernel, create the file;
sudo vi /etc/udev/rules.d/40-permissions.rules

/etc/udev/rules.d/40-permissions.rules
KERNEL=="vboxdrv", GROUP="vboxusers", MODE="0660"

That's it, Virtualbox should be installed and ready to go.
Now we can move on to creating a virtual machine
Create a machine named "io"
VBoxManage createvm -name io --ostype Ubuntu -register

Configure it with a nic bridged to eth0, 256Mb RAM, enable acpi and set to boot from DVD
VBoxManage modifyvm io --memory 256 --pae on --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0

Create a virtual IDE controller
VBoxManage storagectl io --name IDE0 --add ide

Create a virtual HDD
VBoxManage createvdi -filename ~/.VirtualBox/Machines/io/sda.vdi -size 48000 -register

Attach the virtual HDD
VBoxManage storageattach io --storagectl IDE0 --port 0 --device 0 --type hdd --medium ~/.VirtualBox/Machines/io/sda.vdi

Create and attach a virtual DVD drive to the controller and insert the DVD image
VBoxManage storageattach io --storagectl IDE0 --port 1 --device 0 --type dvddrive --medium /store/archive/ISO/ubuntu-10.04-server-i386.iso

The default vrdp port for machines is 3389, however, if you intend to run more than one guest then each one will need to listen on a different port. I use the 3xxx range with the xxx being the last octet of the machines IP address. For example, 192.168.0.1 would be 3001.
VBoxManage modifyvm io --vrdpport 3001

And thats it, your machine has been created. Time to start it up and give it a test drive!

Using the virtual machine

Start the machine
nohup VBoxHeadless -startvm io &

On a GUI workstation, establish a remote desktop connection to the machine. In my case, the host server is called "jupiter" so I type;
rdesktop -a 8 jupiter:3001

After you have installed the OS, you need to tell the machine to boot from the hdd.
VBoxManage modifyvm io --boot1 disk

You can also deregister the dvd image if you don't intend to use it again.
VBoxManage unregisterimage dvd /store/archive/ISO/ubuntu-10.04-server-i386.iso


Here are some other useful commands;
VBoxManage showvminfo io
VBoxManage list hdds
VBoxManage list runningvms
VBoxManage controlvm io poweroff
VBoxManage unregistervm io --delete
VBoxManage controlvm io savestate
VBoxManage closemedium disk UUID
VBoxManage modifyhd UUID --type immutable

[ubuntu] Virtualbox: Save Windows XP guest screen resolution - Ubuntu Forums

[ubuntu] Virtualbox: Save Windows XP guest screen resolution - Ubuntu Forums: "Virtualbox: Save
Virtualbox: Save Windows XP guest screen resolution

I've got VirtualBox 1.6.2 installed on a Ubuntu 8.04 host. Running Windows XP SP3 in VM. I prefer to use a screen resolution of 1440x900x32 for my guest and can easily set this using:

VBoxManage controlvm [xpGuestName] setvideomodehint 1440 900 32

HOWEVER, I have to do this every time, as the default resolution of 1024x768 is how it starts at bootup. Is there any way to save the 1440x900 screen resolution properties so that my VBox WinXP guest will start that way every time?

sábado, 23 de outubro de 2010

How to install Windows 2000/XP/2003 guests with SATA support (View topic) • virtualbox.org

How to install Windows 2000/XP/2003 guests with SATA support (View topic) • virtualbox.org:

How to install Windows 2000/XP/2003 guests with SATA support

How to install Windows 2000/XP/2003 guests with SATA support

Postby chungy » 14. Sep 2008, 10:00

I'll show how to install Windows 2000, XP, or 2003 on a SATA disk without much hassle. Additionally, when you use this with Windows 2000, you avoid the Win2k IDE driver bug which can cause installation failures as described in the VirtualBox manual section 11.2.2; you will not need to provide any delayed writing in order to install it on a fast computer.

You need:
1. Sun xVM VirtualBox version 1.6.0 or higher (this process has only been tested on 2.2.0, however)
2. Windows 2000, XP, or 2003 installation CD-ROM; any release/edition should do, although this process has only been tested on the latest service packs
3a. If you need Windows XP or 2003: Download the drivers from Intel
3b. If you need Windows 2000: There are no official drivers, however you may use unofficial drivers as described in an MSFN forum post. WARNING, of course, that using these drivers comes with a certain amount of risk; scan with virus checkers and back up important data inside the VM periodically, I cannot guarantee the safety of these drivers.

For Windows 2000, you need to create a floppy disk (real or image) from the unofficial files you downloaded; all the files should be placed in the root directory of the disk.
(Under Windows, I am unfortunately not well-versed enough to understand how to create floppy images using native tools, however the GNU/Linux instructions should work under Cygwin as well)
To create an appropriate image under GNU/Linux hosts, you will need the unzip and mtools software packages installed (check your local package manager):
Code: Select all Expand viewCollapse view
$ unzip AHCI_v7.0.0.1020_for_ICH8.zip
$ dd if=/dev/zero of="Win2000 SATA.img" bs=1k count=1440
$ mformat -i "Win2000 SATA.img" -f 1440 ::
$ mcopy -i "Win2000 SATA.img" "AHCI v7.0.0.1020 for ICH8"/* ::

(note the position of the quotes on the last command, the asterisk cannot be placed inside quotes!)

For Windows XP/2003, you need to extract the f6flpy32.zip Zip file. Inside it is an EXE; all it does is write an image to a real floppy; if you're already using Windows and want to make a real floppy disk, go ahead and use it, otherwise just use an UnZip utility to extract the image (named F32.IMA).

Just create a virtual machine now for Windows, and change the virtual hard disk so it uses SATA instead of the default IDE. Mount the floppy in VBox (either real or the disk image, the latter is faster), and make sure that the floppy drive is not set as one of the boot devices (or press F12 when you start the VM and boot the CD-ROM manually).

Press F6 when Windows Setup prompts you if you want to load additional drivers. It doesn't seem to take effect immediately, but just wait a few seconds. Once that is done, this screen will come up:
Image

Press S, and select "Intel(R) 82801HEM/HBM SATA AHCI Controller (Mobile ICH8M-E/M)" as the driver to load:
Image

After that's done, just press Enter to continue installing Windows as normal. Be sure to remove the floppy disk after the text mode portion of the installation is completed, or you may encounter boot issues (the floppy is not bootable itself of course).

Windows 2000 in the graphical portion of the setup might warn about unsigned drivers being loaded, this is normal as the drivers in use are not official ones from Intel.
chungy
Volunteer
Posts: 132
Joined: 26. Jan 2008, 10:27

Postby Sasquatch » 14. Sep 2008, 15:44

Thanks, I will sticky it. This is for 2000, XP and 2003 Guest systems, as Vista and above already has the ICH8 driver. Older Windows Guests will not be able to use SATA in this way. They might be able to see and read/write it, but that is currently unknown.

Usually, I advise people to use nLite to integrate it, but this is also an option and saves the trouble of extracting the iso/copy the cd to the hard drive. Great Howto.
As it's a howto, I will also lock it so it won't be cluttered with questions and all, that is for a separate topic.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions + Xorg config
Howto: Use Shared Folders
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

PMs asking for help will be ignored. Create a topic instead.
Sasquatch
Site Moderator
Posts: 13701
Joined: 17. Mar 2008, 13:41
Location: Netherlands
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP, Linux

Re: How to install Windows 2000/XP/2003 guests with SATA support

Postby Technologov » 6. Oct 2010, 20:04

The original link to Intel SATA driver no longer works.

Any updated link ?
Technologov
Site Moderator
Posts: 1782
Joined: 10. May 2007, 16:59
Location: Israel

Re: How to install Windows 2000/XP/2003 guests with SATA support

Postby Sasquatch » 6. Oct 2010, 20:47

Attached the .zip of the driver, version 7.8 which works with the VB SATA controller because the link no longer works.
Attachments
Intel Storage Manager 7.8 Floppy.zip
Intel Matrox Storage driver floppy files
(205.99 KiB) Downloaded 113 times
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions + Xorg config
Howto: Use Shared Folders
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

PMs asking for help will be ignored. Create a topic instead.
Sasquatch
Site Moderator
Posts: 13701
Joined: 17. Mar 2008, 13:41
Location: Netherlands
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP, Linux

Re: How to install Windows 2000/XP/2003 guests with SATA support

Postby fixedwheel » 6. Oct 2010, 20:49

Technologov wrote:The original link to Intel SATA driver no longer works.

Any updated link ?

5 results: there are F6 drivers for 32 and 64bit as well as the full blown ones =>
http://downloadcenter.intel.com/SearchR ... amilyId=40

quarta-feira, 20 de outubro de 2010

How to disable user list in log-in screen? - Ubuntu Forums

How to disable user list in log-in screen? - Ubuntu Forums: "Re: How to disable user list in log-in screen?
I had some luck executing the following in a terminal:
Code:

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type bool --set /apps/gdm/simple-greeter/disable_user_list true

– Enviado usando a Barra de Ferramentas Google"