https://wiki.archlinux.org/api.php?action=feedcontributions&user=Insanum&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:39:41ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Dotfiles&diff=277298Dotfiles2013-10-01T23:43:27Z<p>Insanum: /* Repositories */</p>
<hr />
<div>{{Lowercase title}}<br />
[[Category:Dotfiles]]<br />
{{Article summary start|Summary}}<br />
{{Article summary text|This article collects links to many user repositories containing custom configuration files.}}<br />
{{Article summary end}}<br />
<br />
'''dotfiles''' are configuration files.<br />
<br />
== Managing dotfiles with git ==<br />
A popular way of keeping a centralized copy of your dotfiles is hosting them on github.<br />
<br />
== Repositories ==<br />
<br />
{| class="wikitable sortable" border="1" cellpadding="1" cellspacing="0"<br />
! scope="col" | Author<br />
! scope="col" | Shell<br />
! scope="col" | WM / DE<br />
! scope="col" | Editor<br />
! scope="col" | Terminal<br />
! scope="col" | Multiplexer<br />
! scope="col" | Audio<br />
! scope="col" | Monitor<br />
! scope="col" | Mail<br />
! scope="col" | IRC<br />
|-<br />
! [https://github.com/pbrisbin/dotfiles brisbin33]<br />
| [https://github.com/pbrisbin/oh-my-zsh zsh] || [https://github.com/pbrisbin/xmonad-config xmonad] || [https://github.com/pbrisbin/vim-config vim] || rxvt-unicode || screen || || dzen || [https://github.com/pbrisbin/mutt-config mutt] || [https://github.com/pbrisbin/irssi-config irssi]<br />
|-<br />
! [https://github.com/cinelli/dotfiles cinelli]<br />
| zsh || dwm || vim || termite-git || || pianobar || htop || mutt-kz || weechat<br />
|-<br />
! [https://github.com/falconindy/dotfiles falconindy]<br />
| bash || i3 || vim || rxvt-unicode || || ncmpcpp || conky || mutt ||<br />
|-<br />
! [https://github.com/graysky2/configs/tree/master/dotfiles graysky]<br />
| zsh || xfce4 || vim || terminal || || ncmpcpp || custom || thunderbird ||<br />
|-<br />
! [http://code.gtmanfred.com/cgit/dotfiles.git/tree/?h=tower gtmanfred]<br />
| zsh || dwm || vim || termite-git || tmux || mpd || conky || mutt || weechat<br />
|-<br />
! [https://github.com/insanum/dotfiles insanum]<br />
| bash || herbstluftwm || vim || evilvte || tmux || || dzen || mutt-kz ||<br />
|-<br />
! [https://bitbucket.org/jasonwryan/eeepc/src jasonwryan]<br />
| bash/zsh || dwm || vim || rxvt-unicode || tmux || ncmpcpp || custom || mutt || irrsi<br />
|-<br />
! [http://github.com/meskarune/.dotfiles meskarune]<br />
| bash || herbstluftwm || vim || rxvt-unicode || screen || || conky || || weechat<br />
|-<br />
! [https://github.com/neersighted/dotfiles neersighted]<br />
| zsh || i3 || vim || rxvt-unicode || tmux || ncmpcpp || htop || mutt || irssi<br />
|-<br />
! [https://github.com/ok100/configs OK100]<br />
| bash || dwm || vim || rxvt-unicode || || cmus || conky, dzen || mutt || weechat<br />
|-<br />
! [http://hg.subtle.de/dotfiles/file unexist]<br />
| zsh || subtle || vim || rxvt-unicode || || ncmpcpp || || mutt || irssi<br />
|-<br />
! [http://github.com/vodik/dotfiles vodik]<br />
| zsh || xmonad || vim || termite-git || tmux || ncmpcpp || custom || mutt || weechat<br />
|-<br />
! [http://github.com/w0ng/dotfiles w0ng]<br />
| zsh || dwm || vim || rxvt-unicode || tmux || ncmpcpp || custom || mutt || irssi<br />
|-<br />
! [http://github.com/Wintervenom/Configuration Wintervenom]<br />
| bash || herbstluftwm ||vim || rxvt-unicode || screen ||mpd ([https://github.com/Wintervenom/Scripts/tree/master/audio/mpd mpc-utils]) || [https://github.com/Wintervenom/Scripts/blob/master/wm/herbstluftwm/hlwm-dzen2https://github.com/wolfcore/dotfiles hlwm-dzen2] || mutt || weechat<br />
|-<br />
! [http://github.com/wolfcore/dotfiles wolfcore] <br />
| bash || dwm || vim || rxvt-unicode || tmux || cmus || custom || || weechat<br />
|-<br />
! [https://github.com/xfausto/dotfiles xfausto]<br />
| zsh || dwm || vim || st || || ncmpcpp || conky || ||<br />
|-<br />
! [https://github.com/zendeavor zendeavor]<br />
| [https://github.com/zendeavor/config-stuff/tree/sandbag/zsh zsh] || [https://github.com/zendeavor/config-stuff/blob/sandbag/i3/config i3] || [https://github.com/zendeavor/dotvim/tree/sandbag vim] || [https://github.com/zendeavor/config-stuff/blob/sandbag/X11/Xresources#L14 rxvt-unicode] || [https://github.com/zendeavor/config-stuff/tree/sandbag/tmux tmux] || [https://github.com/zendeavor/config-stuff/blob/sandbag/ncmpcpp/config ncmpcpp] || [https://github.com/zendeavor/config-stuff/blob/sandbag/i3/i3status.conf i3status] || || [https://github.com/zendeavor/config-stuff/tree/kiwi/weechat weechat]<br />
|-<br />
|}<br />
<br />
== See also ==<br />
* [http://mywiki.wooledge.org/DotFiles Dotfiles - Greg's Wiki]<br />
* [http://www.haskell.org/haskellwiki/Xmonad/Config_archive XMonad Config Archive]<br />
* [http://dotshare.it dotshare.it]<br />
* [http://dotfiles.org dotfiles.org] - [http://techie.cat/all-contents-from-dotfiles-org/ Copy of contents]</div>Insanumhttps://wiki.archlinux.org/index.php?title=ASUS_G1&diff=40975ASUS G12008-05-08T08:09:53Z<p>Insanum: /* Webcam */</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
==Hardware==<br />
*''CPU:'' Intel Core 2 Duo T7200 (2.00GHz, 4MB cache L2, FSB 667MHz)<br />
*''Chipset:'' Mobile IntelĀ® 945 PM Express Chipset + ICH7M<br />
*''RAM:'' 2048MB (2 x 1024MB) DDR2 SDRAM 667 Mhz<br />
*''Hard Disk:'' SATA 160GB 5400 rpm - SATA 120GB 5400 rpm<br />
*''DVD Burner:'' SUPER MULTI DOUBLE LAYER<br />
*''Display:''<br />
**''TFT 15.4" WXGA (1280x800)'' ColorShine TFT-LCD, Asus Splendid Video Intelligent Technology<br />
**''TFT 15.4" WSXGA+ (1680x1050)'' ColorShine TFT-LCD, Asus Splendid Video Intelligent Technology<br />
*''Video:'' NVIDIA GeForce Go 7700 512MB<br />
*''Audio:'' Scheda Intel High Definition Audio<br />
*''Wi-Fi:'' 802.11a/b/g<br />
*''Bluetooth:'' 2.0+EDR<br />
*''Webcam:'' 1.3 Mpixel<br />
*''Modem:'' 56 Kbps V.90<br />
*''LAN Gigabit Ethernet:'' 10/100/1000<br />
*''Connectors:''<br />
**''1 x Microphone-in jack''<br />
**''1 x Headphone-out jack (S/PDIF)'' <br />
**''1 x TypeII PCMCIA slot''<br />
**''1 x Line-in jack''<br />
**''1 x VGA port''<br />
**''1 x DVI-D port''<br />
**''4 x USB 2.0 ports''<br />
**''1 x IEEE 1394 port''<br />
**''1 x RJ11 Modem jack for phone line''<br />
**''1 x RJ45 LAN Jack for LAN insert''<br />
**''1 x TV-out(S-Video)''<br />
*''Card Reader:'' MMC, SD, MS, MS-Pro<br />
*''Dimension and Weight:''<br />
**''324mm * 284mm * 37.4 mm(W x D x H)''<br />
**''3.1 Kg (8-cell)''<br />
*''Pointer:'' Touch pad<br />
<br />
<br />
==Configuration==<br />
===CPU===<br />
Works out of the box.<br />
<br />
Follow this [[SpeedStep]] guide to enable speed-stepping.<br />
<br />
===Video===<br />
Works with the proprietary Nvidia driver in full display resolution.<br />
<br />
TV-Out/DVI currently untested, but the graphics driver finds the interfaces, so they should be switchable with the nvidia-tools.<br />
<br />
VGA-Out is working with nvidia-settings.<br />
<br />
Console framebuffer is working in 1024x768 with the vga=0x317 kernel boot option. With the vesafb-tng patch the native display resolution should work, too.<br />
<br />
====Xorg====<br />
Follow this guide: [[NVIDIA]]<br />
<br />
No problems detected.<br />
<br />
===Audio===<br />
Works out of the box.<br />
<br />
Follow the official documentation: [[ALSA]]<br />
<br />
===Wi-Fi===<br />
To enable wireless follow the official guide: [[Wireless Setup]]<br />
<br />
Please note that the Asus G1 needs the ipw3945 driver.<br />
<br />
NetworkManager is also a cool option.<br />
<br />
===Webcam===<br />
Since there is no official support for the G1 Webcam, you need to install separate drivers.<br />
<br />
The best one (and the only one for Linux) is [http://syntekdriver.sourceforge.net/ syntekdriver].<br />
<br />
The installation is really simple:<br />
<br />
Download and unpackage the sources.<br />
make clean<br />
make<br />
modprobe videodev<br />
insmod stk11xx.ko<br />
<br />
That's all. Now the webcam is working.<br />
<br />
Please note:<br />
* There is a problem loading the driver about the "/sys" file system. This isn't dangerous but will prevent the boot of Arch if you put the stk11xx driver in your loading modules (so don't do it).<br />
* V4L is better than V4L2 right now. In future releases this may change, but for now use V4L.<br />
<br />
Update:<br />
* new Asus G1S-B1 laptops ship with the Chicony Electronics webcam which the 'linux-uvc-svn' package contains the driver for<br />
<br />
===Bluetooth===<br />
Works out of the box? I don't own any bluetooth device, but the controller is detected and configured automatically.<br />
<br />
===Pointer===<br />
To enable the pointer follow this guide: [[Touchpad Synaptics]]<br />
<br />
A really cool utility is gsynaptics (available in the [community] repo).<br />
<br />
===Leds & ACPI upgrade===<br />
To enable every led (the ones on the LCD too) the first thing needed is upgrading the acpi module with the one provided by [http://acpi4asus.sourceforge.net/ acpi4asus].<br />
<br />
It's really easy, follow these steps:<br />
<br />
mkdir sources<br />
cvs -d:pserver:anonymous@acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus login<br />
cvs -z3 -d:pserver:anonymous@acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus co -P acpi4asus<br />
cd acpi4asus/driver<br />
make<br />
make install<br />
<br />
Now the new driver is installed. To use it and prevent udev from using the old one, edit your /etc/rc.conf and:<br />
#Add to "MOD_BLACKLIST": asus_acpi<br />
#Add to "MODULES": asus_laptop<br />
<br />
Right now you can reboot or execute:<br />
modprobe -r asus_acpi<br />
modprobe asus_laptop<br />
<br />
Everything done!<br />
<br />
You'll find the leds in "/sys/class/leds/".<br />
<br />
To enable a led write "1" in the "brightness" file in the right directory.<br />
To disable a led write "0" in the "brightness" file in the right directory.<br />
<br />
Try this:<br />
echo 1 > /sys/class/leds/asus:gaming/brightness <br />
<br />
Enjoy your leds!<br />
<br />
===OLED Display===<br />
There is a package in AUR named asusoled.<br />
<br />
kernel < 2.6.23: It needs turning off usbhid (rmmod usbhid) or patching the kernel: [http://kharg.LKSnet.org/asus-lcm.diff asus-lcm.diff]<br />
<br />
kernel >= 2.6.23: works out of a box<br />
<br />
<br />
There is also a separate kernel driver based on asusoled: [http://lapsus.berlios.de/asus_oled.html Asus_OLED]. It works without patching usbhid or removing asus_laptop. Just load it before the usbhid module gets loaded and it will work (< 2.6.23, in new kernels works out of a box). It contains a small Qt utility, which can be used as a drop-in replacement for asusoled, and has some additional features.<br />
<br />
====Function Keys====<br />
WiP<br />
<br />
===Utilities===<br />
Here are some useful utilities:<br />
<br />
====The Lapsus daemon & KDE applet====<br />
Lapsus is a set of programs created to help manage additional laptop features such as: <br />
* All the LEDs (on/off)<br />
* LCD Backlight<br />
* Wireless radio switch<br />
* Bluetooth adapter switch<br />
* Alsa mixer (volume control, mute/unmute)<br />
* Synaptics touchpad (on/off)<br />
* Volume/Mute hotkeys<br />
* Touchpad hotkey<br />
* Backlight hotkey<br />
* LightSensor switch and sensitivity level (svn version only)<br />
<br />
<strike>Prerequisites: acpi4asus from CVS (at least a version > 0.41).</strike> In your rc.conf, blacklist the 'acpi_asus' module and add the 'asus_laptop' one in the MODULES array.<br />
<br />
Install the latest lapsus package from [http://aur.archlinux.org/packages.php?do_Details=1&ID=11207 aur].<br />
Now start the lapsusd daemon: <b>/etc/rc.d/lapsusd start</b>. You can add it into DAEMONS array in <b>/etc/rc.conf</b>.<br />
<br />
Finally add the lapsus applet to KDE kicker.</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=29653VMware/Install Arch Linux as a guest2007-09-21T19:17:28Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
* ArchLinux (Don't Panic) with kernel 2.6.22.6-2 installed on VMWare Workstation 6.0.1 build-55017 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
'''UPDATE FOR KERNELS >= 2.6.22'''<br />
* VMWare Workstation 6.0.1 build-55017 '''does''' play nicely with kernel versions 2.6.22 and above.<br />
* Simply follow the same procedures as described in this document except one simple patch/change is necessary for the guest tools to compile. After extracting the tools to /opt/vmware-tools do the following:<br />
<br />
cd /opt/vmware-tools/lib/vmware-tools/modules/source<br />
tar -xvf vmhgfs.tar<br />
cd vmhgfs-only<br />
'''<edit compat_slab.h> and apply the simple one line patch shown below'''<br />
cd ..<br />
mv vmhgfs.tar vmhgfs.tar.orig<br />
tar -cvf vmhgfs.tar vmhgfs-only<br />
'''<continue as described by this document>'''<br />
<br />
compat_slab.h<br />
@@ -24,7 +24,7 @@<br />
/*<br />
* Destructor is gone since 2.6.23-pre1.<br />
*/<br />
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
#define compat_kmem_cache_create(name, size, align, flags, ctor) \<br />
kmem_cache_create(name, size, align, flags, ctor, NULL)<br />
#else<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
=== Using Shared Folders with the Host ===<br />
<br />
Create a new Shared Folder by selecting '''VM -> Settings...''' from the VMware Workstation menu. Select the '''Options''' tab and then '''Shared Folder'''. Check the '''Always enabled''' option and create a new share. For Windows XP you can create a share with the Name '''C''' and the Host Path '''C:\'''.<br />
<br />
Then add the following line to you '''/etc/fstab''' file (changing uid/gid as needed):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
Make the mount directory and mount the Shared Folders:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
All of your shared folders will now be visible by name under /mnt/hgfs<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
For the Windows XP '''C''' share example:<br />
<br />
ls /mnt/hgfs/C<br />
... all those stupid Windows files under C:\ ...<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=29652VMware/Install Arch Linux as a guest2007-09-21T19:13:21Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
'''UPDATE FOR KERNELS >= 2.6.22'''<br />
* VMWare Workstation 6.0.1 build-55017 '''does''' play nicely with kernel versions 2.6.22 and above.<br />
* Simply follow the same procedures as described in this document except one simple patch/change is necessary for the guest tools to compile. After extracting the tools to /opt/vmware-tools do the following:<br />
<br />
cd /opt/vmware-tools/lib/vmware-tools/modules/source<br />
tar -xvf vmhgfs.tar<br />
cd vmhgfs-only<br />
'''<edit compat_slab.h> and apply the simple one line patch shown below'''<br />
cd ..<br />
mv vmhgfs.tar vmhgfs.tar.orig<br />
tar -cvf vmhgfs.tar vmhgfs-only<br />
'''<continue as described by this document>'''<br />
<br />
compat_slab.h<br />
@@ -24,7 +24,7 @@<br />
/*<br />
* Destructor is gone since 2.6.23-pre1.<br />
*/<br />
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
#define compat_kmem_cache_create(name, size, align, flags, ctor) \<br />
kmem_cache_create(name, size, align, flags, ctor, NULL)<br />
#else<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
=== Using Shared Folders with the Host ===<br />
<br />
Create a new Shared Folder by selecting '''VM -> Settings...''' from the VMware Workstation menu. Select the '''Options''' tab and then '''Shared Folder'''. Check the '''Always enabled''' option and create a new share. For Windows XP you can create a share with the Name '''C''' and the Host Path '''C:\'''.<br />
<br />
Then add the following line to you '''/etc/fstab''' file (changing uid/gid as needed):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
Make the mount directory and mount the Shared Folders:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
All of your shared folders will now be visible by name under /mnt/hgfs<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
For the Windows XP '''C''' share example:<br />
<br />
ls /mnt/hgfs/C<br />
... all those stupid Windows files under C:\ ...<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=29651VMware/Install Arch Linux as a guest2007-09-21T19:12:26Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
'''UPDATE FOR KERNELS >= 2.6.22'''<br />
* VMWare Workstation 6.0.1 build-55017 '''does''' play nicely with kernel versions 2.6.22 and above.<br />
* Simply follow the same procedures as described in this document except one simple patch/change is necessary for the guest tools to compile. After extracting the tools to /opt/vmware-tools do the following:<br />
<br />
cd /opt/vmware-tools/lib/vmware-tools/modules/source<br />
tar -xvf vmhgfs.tar<br />
cd vmhgfs-only<br />
'''<edit compat_slab.h> and apply the simple one line patch shown below'''<br />
cd ..<br />
mv vmhgfs.tar vmhgfs.tar.orig<br />
tar -cvf vmhgfs.tar vmhgfs-only<br />
'''<continue as described by this document>'''<br />
<br />
compat_slab.h<br />
@@ -24,7 +24,7 @@<br />
/*<br />
* Destructor is gone since 2.6.23-pre1.<br />
*/<br />
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
#define compat_kmem_cache_create(name, size, align, flags, ctor) \<br />
kmem_cache_create(name, size, align, flags, ctor, NULL)<br />
#else<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
=== Using Shared Folders with the Host ===<br />
<br />
Create a new Shared Folder by selecting '''VM -> Settings...''' from the VMware Workstation menu. Select the '''Options''' tab and then '''Shared Folder'''. Check the '''Always enabled''' option and create a new share. For Windows XP you can create a share with the Name '''C''' and the Host Path '''C:\'''.<br />
<br />
Then add the following line to you '''/etc/fstab''' file (changing uid/gid as needed):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
Make the mount directory and mount the Shared Folders:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
All of your shared folders will now be visible by name under /mnt/hgfs<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
For the Windows XP '''C''' share example:<br />
<br />
ls /mnt/hgfs/C<br />
... all those stupid Windows files under C:\ ...<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=29650VMware/Install Arch Linux as a guest2007-09-21T19:11:17Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
'''UPDATE FOR KERNELS >= 2.6.22'''<br />
* VMWare Workstation 6.0.1 build-55017 '''does''' play nicely with kernel versions 2.6.22 and above.<br />
* Simply follow the same procedures as described below except one simple patch/change is necessary for the guest tools to compile. After installing the tools to /opt/vmware-tools do the following:<br />
<br />
cd /opt/vmware-tools/lib/vmware-tools/modules/source<br />
tar -xvf vmhgfs.tar<br />
cd vmhgfs-only<br />
'''<edit compat_slab.h> and apply the simple one line patch shown below'''<br />
cd ..<br />
mv vmhgfs.tar vmhgfs.tar.orig<br />
tar -cvf vmhgfs.tar vmhgfs-only<br />
<br />
compat_slab.h<br />
@@ -24,7 +24,7 @@<br />
/*<br />
* Destructor is gone since 2.6.23-pre1.<br />
*/<br />
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
#define compat_kmem_cache_create(name, size, align, flags, ctor) \<br />
kmem_cache_create(name, size, align, flags, ctor, NULL)<br />
#else<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
=== Using Shared Folders with the Host ===<br />
<br />
Create a new Shared Folder by selecting '''VM -> Settings...''' from the VMware Workstation menu. Select the '''Options''' tab and then '''Shared Folder'''. Check the '''Always enabled''' option and create a new share. For Windows XP you can create a share with the Name '''C''' and the Host Path '''C:\'''.<br />
<br />
Then add the following line to you '''/etc/fstab''' file (changing uid/gid as needed):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
Make the mount directory and mount the Shared Folders:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
All of your shared folders will now be visible by name under /mnt/hgfs<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
For the Windows XP '''C''' share example:<br />
<br />
ls /mnt/hgfs/C<br />
... all those stupid Windows files under C:\ ...<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28914VMware/Install Arch Linux as a guest2007-09-12T18:44:36Z<p>Insanum: /* Final steps */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg7]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/xorg.conf.hwd /etc/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
=== Using Shared Folders with the Host ===<br />
<br />
Create a new Shared Folder by selecting '''VM -> Settings...''' from the VMware Workstation menu. Select the '''Options''' tab and then '''Shared Folder'''. Check the '''Always enabled''' option and create a new share. For Windows XP you can create a share with the Name '''C''' and the Host Path '''C:\'''.<br />
<br />
Then add the following line to you '''/etc/fstab''' file (changing uid/gid as needed):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
Make the mount directory and mount the Shared Folders:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
All of your shared folders will now be visible by name under /mnt/hgfs<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
For the Windows XP '''C''' share example:<br />
<br />
ls /mnt/hgfs/C<br />
... all those stupid Windows files under C:\ ...<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28913VMware/Install Arch Linux as a guest2007-09-12T18:32:51Z<p>Insanum: /* Final steps */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg7]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/xorg.conf.hwd /etc/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28912VMware/Install Arch Linux as a guest2007-09-12T18:32:14Z<p>Insanum: /* Run the Config Script */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. See [[Xorg7]] for more details. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/xorg.conf.hwd /etc/xorg.conf<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28911VMware/Install Arch Linux as a guest2007-09-12T18:31:35Z<p>Insanum: /* Run the Config Script */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. Answer with:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
It will compile some things, detect Xorg, and ask for an X screen resolution (choose one). For the X configuration to work properly you must have already installed Xorg on your system. At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/xorg.conf.hwd /etc/xorg.conf<br />
<br />
See [[Xorg7]] for more details.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28910VMware/Install Arch Linux as a guest2007-09-12T18:24:08Z<p>Insanum: /* Preparations */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28909VMware/Install Arch Linux as a guest2007-09-12T18:23:22Z<p>Insanum: /* Start the Installer */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Note the Bash power user would run:<br />
mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28908VMware/Install Arch Linux as a guest2007-09-12T18:14:53Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Note the Bash power user would run:<br />
mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run '''./vmware-install.pl'''.<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28907VMware/Install Arch Linux as a guest2007-09-12T18:13:13Z<p>Insanum: /* Preparations */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Note the Bash power user would run:<br />
mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run '''./vmware-install.pl'''.<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28906VMware/Install Arch Linux as a guest2007-09-12T18:11:45Z<p>Insanum: /* The Procedure */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root.<br />
<br />
Versions of things used at time of writing: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
<br />
'''WARNING'''<br />
* VMWare Workstation 6.0.0 build-45731 guest additions '''do not''' work with kernel 2.6.22!<br />
* To get around this problem and ensure your installation is mostly up-to-date (except kernel) install ArchLinux (Duke 2007.05) within VMWare and then perform the following system upgrade (to get to Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Note the Bash power-user would run:<br />
<br />
mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run '''./vmware-install.pl'''.<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28905VMware/Install Arch Linux as a guest2007-09-12T17:56:06Z<p>Insanum: /* Preparations */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root. <br />
Versions of things used at time of writing: <br />
archlinux with kernel 2.6.17-3 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
<br />
Also tested with kernel 2.6.18-2 from testing repo<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and init.d.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right:<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run ./vmware-install.pl .<br />
<br />
"In which directory do you want to install the binary files?": /opt/vmware-tools/bin<br />
<br />
"What is the directory that contains the init directories ... ?": /etc/vmware-tools<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run /opt/vmware-tools/bin/vmware-config-tools.pl<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28904VMware/Install Arch Linux as a guest2007-09-12T17:54:14Z<p>Insanum: /* Run the Config Script */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root. <br />
Versions of things used at time of writing: <br />
archlinux with kernel 2.6.17-3 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
<br />
Also tested with kernel 2.6.18-2 from testing repo<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and init.d.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`\/include/linux/version.h<br />
<br />
Check if it is done right:<br />
<br />
cat /usr/src/linux-`uname -r`\/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run ./vmware-install.pl .<br />
<br />
"In which directory do you want to install the binary files?": /opt/vmware-tools/bin<br />
<br />
"What is the directory that contains the init directories ... ?": /etc/vmware-tools<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run /opt/vmware-tools/bin/vmware-config-tools.pl<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanumhttps://wiki.archlinux.org/index.php?title=VMware/Install_Arch_Linux_as_a_guest&diff=28903VMware/Install Arch Linux as a guest2007-09-12T17:53:32Z<p>Insanum: /* Final steps */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:Emulators (English)]]<br />
[[Category:Tutorials (English)]]<br />
Installing Arch Linux inside a VM (e.g. in VMWare running on Windows XP) works without trouble; however, VMWare-tools for Linux guests will not install onto an archlinux on VM 'out of the box.<br />
<br />
Remark: you may not need VMWare-tools at all, depending what you want to do. You need them for higher X screen resolutions, shared folders with the host OS, and some other things.<br />
<br />
== The Procedure ==<br />
<br />
Most of this expects that you are root. <br />
Versions of things used at time of writing: <br />
archlinux with kernel 2.6.17-3 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
<br />
Also tested with kernel 2.6.18-2 from testing repo<br />
<br />
=== Preparations ===<br />
<br />
(Some important parts of this procedure were adapted from/inspired by a page called <br />
[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]; more technical information that this author does not pretend to understand is there.)<br />
<br />
(directory paths have been chosen similar to those used in the vmware-workstation AUR package)<br />
<br />
This guide assumes the user is installing from the .tar.gz package (not the .rpm).<br />
see http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html for details<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and init.d.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''Problem #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`\/include/linux/version.h<br />
<br />
Check if it is done right:<br />
<br />
cat /usr/src/linux-`uname -r`\/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== Start the Installer ===<br />
<br />
Go to the place you extracted the installer and run ./vmware-install.pl .<br />
<br />
"In which directory do you want to install the binary files?": /opt/vmware-tools/bin<br />
<br />
"What is the directory that contains the init directories ... ?": /etc/vmware-tools<br />
<br />
<br />
For the rest: accept default locations; say yes when a directory creation is needed.<br />
<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== Run the Config Script ===<br />
<br />
Run /opt/vmware-tools/bin/vmware-config-tools.pl<br />
<br />
The script asks 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]' give /usr/src/linux-`uname -r`\/include as answer.<br />
<br />
It will compile some things, detect Xorg and ask for an X screen resolution; choose one.<br />
<br />
=== Final steps ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
Edit /etc/X11/xorg.conf and look for: <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
Change the two following lines to this:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
In rc.conf look for the MODULES= line and '''disable''' the pcnet32 module and enable the vmware modules so it looks like this:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
In order for the system date and time to be in sync the vmware-guestd application<br />
must be running. This can be started during boot by make the following symlink:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
Then in rc.conf look for the DAEMONS= line and add 'vmware-tools' to it.<br />
<br />
Additionally, in order for copy/paste to work between X and the host you must run the 'vmware-user' application. Add the following line to you .xinitrc or .xsession (wherever you start apps during X initialization):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
Reboot and everything should work.<br />
<br />
That should be all, folks.<br />
<br />
==See Also==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Insanum