DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th December 2010
xinform3n xinform3n is offline
Port Guard
 
Join Date: Jun 2009
Posts: 15
Thanked 0 Times in 0 Posts
Question VMT driver (VMware Tools driver) on OpenBSD 4.8

EHLO !

I'm really interested by "vmt" driver (VMware Tools driver) but I can't get it work.

These driver as been updated on the 4.8 version to support clean shutdown et reboot through hypervisor request as mentionned on the man page (in the past, it was "only" a timedelta sensor).

Quote:
The vmt driver is a kernel level implementation of VMware Tools.
VMware Tools are intended to provide better support for operating systems running inside virtual machines.
vmt handles shutdown and reboot requests from the host by signalling init(8) with SIGUSR2 and SIGINT respectively.
vmt will log notifications that the guest has been suspended or resumed by the host.
It also provides access to the host machine's clock as a timedelta sensor.
vmt reports the guests hostname and first non-loopback IP address to the host.

More on Manual Pages
So, I have installed OpenBSD 4.8 on my VMware ESXi (4.1) hypervisor.

Then I have tested the following How To:

Code:
# cd /usr/src
# wget ftp://your.mirror/pub/OpenBSD/4.5/sys.tar.gz
# tar -xzvpf sys.tar.gz
# cp /bsd /bsd.backup
# cp /usr/src/sys/arch/i386/conf/GENERIC /usr/src/sys/arch/i386/conf/GENERIC.vmt
# vi /usr/src/sys/arch/i386/conf/GENERIC.vmt
-> uncomment the line: vmt0    at mainbus?             # VMware Tools
# cd /usr/src/sys/arch/i386/conf
# config GENERIC.vmt
# cd ..
# make clean && make depend && make
# make install

source
But I don't have any shutdown / reboot functionnality working on my hypervisor.
Could you help me ?
Reply With Quote
  #2   (View Single Post)  
Old 9th December 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,792
Thanked 214 Times in 189 Posts
Default

There's an error in your "How To"

If you used it as you posted it, you did not build a new kernel.

After running the config of GENERIC, "cd .." takes you to the wrong directory. Your kernel build would not occur. It should have been "cd ../GENERIC.vmt"

FAQ 5 needs to be perused, so you understand what you are doing when you rebuild a kernel, and what to expect.

To check what kernel you are running with, just use this command:

sysctl kern.version

You'll get the first two lines of your dmesg, showing the name of the kernel, when and where and by who it was built.
Reply With Quote
  #3   (View Single Post)  
Old 9th December 2010
xinform3n xinform3n is offline
Port Guard
 
Join Date: Jun 2009
Posts: 15
Thanked 0 Times in 0 Posts
Default

Thank you jggimi !

Now the VMT driver is correctly loaded in kernel.

But this version of VMT don't have the last update as mentionned on the Manual Pages.
It's only the timedelta sensor.

How can I update only this module from CVS ?
It seems that the last version have all the new features.
Reply With Quote
  #4   (View Single Post)  
Old 9th December 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The OpenBSD kernel is not modular, you cannot pick and choose drivers from later releases.. that is unsupported.
Reply With Quote
  #5   (View Single Post)  
Old 9th December 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,792
Thanked 214 Times in 189 Posts
Default

You have now learned a valuable lesson. Never blindly follow any "How To" you find on the Internet.

You can get the latest and greatest version of the driver by running -current. Please read FAQ 5.1.
Reply With Quote
  #6   (View Single Post)  
Old 9th December 2010
xinform3n xinform3n is offline
Port Guard
 
Join Date: Jun 2009
Posts: 15
Thanked 0 Times in 0 Posts
Unhappy

Thank you for details.

So, no clean way to install last VMT driver.

How can I do proper shutdown of my OpenBSD 4.8 VM's on VMware ESXi ?
Reply With Quote
  #7   (View Single Post)  
Old 9th December 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,792
Thanked 214 Times in 189 Posts
Default

Clean way to install latest driver: use -current.

Without that driver, the only way to shutdown your OpenBSD guest is by its console, or, via its network connections.
Reply With Quote
  #8   (View Single Post)  
Old 9th December 2010
xinform3n xinform3n is offline
Port Guard
 
Join Date: Jun 2009
Posts: 15
Thanked 0 Times in 0 Posts
Default

Okay, I'll try current.
I don't have anymore questions.
Thank you
Reply With Quote
Reply

Tags
vmt driver vmware tools

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which mouse driver Mr-Biscuit NetBSD General 0 9th June 2010 12:43 AM
Vmware tools on Openbsd 4.6? Stellar OpenBSD Installation and Upgrading 8 26th December 2009 07:42 PM
msk(4) Driver indienick FreeBSD General 4 4th May 2009 04:51 PM
Driver development WeakSauceIII OpenBSD General 5 31st May 2008 07:18 AM
NetBSD USB Driver jmarc007 NetBSD Installation and Upgrading 1 13th May 2008 04:45 AM


All times are GMT. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick