[vbox-dev] Change setting with java Main API

2014-05-29 Thread Federica Renzi
Hi everyone,
I'm trying to change some VM setting during the execution of virtualbox. I
read in SDK documentation that it's possible only locking the machine and
saving its state, otherwise no change will be performed.

I tried to achieve it using java api (com-xpcom glue) and custumize
TestVBox.java, but I fall into these errors:

   - if I write
   m.lockMachine(sess, LockType.fromValue(2)); // lock write
   The function lockMachine returned an error condition: The machine
   'NAME' is already locked for a session (or being unlocked) (0x80bb0007)

   - if I write
   sess.unlockMachine();
   The function unlockMachine returned an error condition: The session
   is not locked (session state: Unlocked) (0x8000)

   - if I write directly (without any lock command)
   m.saveSettings();
   The function saveSettings returned an error condition: The machine is
   not mutable (state is Running) (0x80bb0002)


How could I solve it?

Thanks

-- 
Federica Renzi
___
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev


Re: [vbox-dev] Change setting with java Main API

2014-05-29 Thread Maxime Dor
Use LockType.Shared instead - some other process must already be using the
VM (is it running?)


On 29 May 2014 10:12, Federica Renzi renzi.f...@gmail.com wrote:

 Hi everyone,
 I'm trying to change some VM setting during the execution of virtualbox. I
 read in SDK documentation that it's possible only locking the machine and
 saving its state, otherwise no change will be performed.

 I tried to achieve it using java api (com-xpcom glue) and custumize
 TestVBox.java, but I fall into these errors:

- if I write
m.lockMachine(sess, LockType.fromValue(2)); // lock write
The function lockMachine returned an error condition: The machine
'NAME' is already locked for a session (or being unlocked) (0x80bb0007)

- if I write
sess.unlockMachine();
The function unlockMachine returned an error condition: The session
is not locked (session state: Unlocked) (0x8000)

- if I write directly (without any lock command)
m.saveSettings();
The function saveSettings returned an error condition: The machine
is not mutable (state is Running) (0x80bb0002)


 How could I solve it?

 Thanks

 --
 Federica Renzi

 ___
 vbox-dev mailing list
 vbox-dev@virtualbox.org
 https://www.virtualbox.org/mailman/listinfo/vbox-dev


___
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev


Re: [vbox-dev] is VRDP clipboard supposed to work?

2014-05-29 Thread Geoff Nordli


Sorry, I should re-word that sentence.

The clipboard does not work in either direction.

thanks,

Geoff

On 14-05-28 11:01 AM, Geoff Nordli wrote:

Just wondering if I should submit a bug with this.

Trying to use it from a Windows 7 client.  Clipboard works in neither 
direction.  Here is the log:



VirtualBox VM 4.3.12 r93733 linux.amd64 (May 16 2014 18:07:19) release log


00:00:51.140376 VRDP: New connection:

00:00:51.140477 VRDP: Connection opened (IPv4): 0

00:00:51.140813 VRDP: Negotiating security method with the client.

00:00:51.142418 VRDP: Connection closed: 0

00:00:54.985683 VRDP: New connection:

00:00:54.985757 VRDP: Connection opened (IPv4): 1

00:00:54.986170 VRDP: Negotiating security method with the client.

00:00:55.005759 VRDP: Methods 0x001b

00:00:55.005790 VRDP: Channel: [rdpdr] [1004]. Accepted.

00:00:55.005799 VRDP: Channel: [rdpsnd] [1005]. Accepted.

00:00:55.005807 VRDP: Channel: [cliprdr] [1006]. Accepted.

00:00:55.005815 VRDP: Channel: [drdynvc] [1007]. Accepted.

00:00:55.005822 VRDP: Unsupported SEC_TAG: 0xC006/8. Skipping.

00:00:55.005829 VRDP: Unsupported SEC_TAG: 0xC00A/8. Skipping.

00:00:55.031126 VRDP: Client seems to be MSFT.

00:00:55.031163 VRDP: Logon: WIN7-VM (192.168.156.77) build 9600. 
User: [] Domain: [] Screen: 0


00:00:55.032706 AUTH: User: []. Domain: []. Authentication type: [Null]

00:00:55.032744 AUTH: Access granted.

00:00:55.041775 VRDP: Enabling upstream audio.

00:00:55.041919 VBVA: VRDP acceleration has been requested.

00:00:55.104818 VMMDev::SetVideoModeHint: got a video mode hint 
(1024x768x0)@(0x0),(1;0) at 0


00:00:55.104883 VRDP: SunFlsh disabled.

00:01:01.383397 Starting host clipboard service

00:01:01.383434 Initializing X11 clipboard backend

00:01:01.385404 Shared clipboard: starting shared clipboard thread



thanks,

Geoff


___
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev