Topic Name : Modifying the Settings of a Protected Virtual Machine
Publication Name : Site Recovery Manager Administration
Product/Version : Site Recovery Manager/8.1
Question :
expand srm volume
Topic Name : Modifying the Settings of a Protected Virtual Machine
Publication Name : Site Recovery Manager Administration
Product/Version : Site Recovery Manager/8.1
Question :
expand srm volume
Hi,
I am trying to unmount ISO from all the VMs, some of the VMs are asking for question to unmount, I tried the below and getting below error
Please help
Get-CDDrive App123 | Set-CDDrive -NoMedia -Confirm:$false | Set-VMQuestion -Option "Yes" -Confirm:$false
Error:
Set-VMQuestion : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At line:1 char:70
+ ... oMedia -Confirm:$false | Set-VMQuestion -Option "Yes" -Confirm:$false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (CD/DVD drive 1:PSObject) [Set-VMQuestion], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVMQuestion
I've been attempting to test out the SCP option in the new File-based VCSA backup feature in 6.5 (specifically, I'm testing against 6.5.0e which is the latest as of today). My backup target is currently a Windows box running Bitvise SSH Server using a dedicated local account that is limited to file transfers only (no shell) and a virtual root directory. The user config looks like this if anyone wants to try and reproduce locally.
I have verified that SCP file transfers to and from my VCSA to this SSH server using the account I configured work just fine. That is, I can SSH to vCenter, drop to the shell, and "scp filename backup@myserver:/" or "scp backup@myserver:/filename ./" and everything transfers successfully.
However, when I attempt to configure the backup job from the VCSA web UI, I get the following error.
Access to the remote server is denied. Check your credentials and permissions.
For reference, here are the values I used in the wizard. I also pre-created an empty "myfolder" in the virtual root.
When I check the logs on the SSH server, I see that the session was denied because it was attempting to execute a command, "Command execute request rejected." This is exactly what I wanted it to do when I set the "No shell access" option. But why is VCSA trying to open a shell when it's supposed to be using SCP?
So let's dig into the log on the VCSA side. I see this in /var/log/vmware/applmgmt/backupRestoreAPI.log:
[MainProcess:PID-2311] ERROR: Failed to validate SSH login at 10.10.10.10:22/myfolder; sshCmd:['sshpass', '-p', '****', 'ssh', '-o', 'ConnectTimeout=10', '-o', 'StrictHostKeyChecking=no', '-p', '22', '-q', '-l', '****', '10.10.10.10', 'exit'], rc: 255, stdOut: , stdErr:
That definitely verifies that it was trying to open a shell. But why? Just to validate credentials in the wizard? Why not just SCP a zero byte file or something? Again, I've already verified that plain old scp works just fine with the current configuration and the GUI and Docs all refer to this option specifically as "SCP" and not "SSH".
In any case, now I'm curious what it will take to get it to work. So I modify the settings for the backup user to allow a shell. Bitvise has a few options for shells. But the only one that respects the virtual filesystem root folder is their BvShell option. From their help docs:
BvShell is a bash-like shell provided by the SSH Server. This is the only shell type which respects the virtual filesystem layout configured for the client in SSH Server settings. BvShell does not permit execution of arbitrary programs. It is intended to be enabled for clients limited to file transfer access that may wish to use commands (e.g. file copy) that their SFTP or SCP client might not provide. (emphasis mine)
Sounds great! The backup user should still be tied to the virtual root folder and limited to commands that are associated with file transfers. I run through the wizard again and make it through to where it seems to be starting the backup job. But it eventually errors out with the message,
BackupManager encountered an exception. Please check logs for details.
So, back to the logs. backupRestoreAPI.log is no help. It just confirms the job failed. There's now a /var/log/vmware/applmgmt/backup.log though which has more details.
[MainProcess:PID-60326] ERROR: Failed to create dir /myfolder/ at 10.10.10.10; sshCmd:['sshpass', '-p', '****', 'ssh', '-o', 'ConnectTimeout=10', '-o', 'StrictHostKeyChecking=no', '-p', '22', '-q', '-l', u'****', u'10.10.10.10', u'mkdir -p /myfolder/'], rc:2, stdOut:, stdErr:mkdir: Unexpected command parameter: -p.
So it's trying to create the "myfolder" which I had already pre-created using "mkdir -p" and apparently the mkdir command in BvShell doesn't support the "-p" option. So now we know not only does this "SCP" transfer method require a shell to execute commands. It is also expecting to have access to (presumably) GNU compatible binaries.
None of our other shell choices in Bitvise respect the virtual filesystem root. So at this point, we're not going to satisfy the security folks even if we do manage to make this work. But in the interest of science, let's see if we can go further and make it work. The "Command Prompt" and "Powershell" options are going to be no good without installing Windows ports of those utilities or resorting to Cygwin. "Git access only" won't work either. But we do have a "bash" option that just needs to be pointed to an executable and this server already has Git for Windows installed which comes with Git Bash that might just do the trick. At the very least, it has a GNU mkdir that supports "-p".
So we change the backup user's shell to "bash" and point it to "C:\Program Files\Git\bin\bash.exe". We also change the virtual filesystem layout to "Allow full access" and update the Location we're using in the Backup GUI to "10.10.10.10/c/temp/backup/myfolder". We make it through the Backup wizard GUI again and the job starts...and then fails with,
Error at process ComponentScriptsBackup; rc:1. For details please check the log file: /var/log/vmware/applmgmt/backup.log.
*sigh* Back to the log file where we find a lot more going on but there's some sort of error with cat following a tar command?
[LotusBackup:PID-6322] INFO: BackupLotus: Dispatching files ['lock.mdb', 'data.mdb']
[LotusBackup:PID-6322] INFO: tarCmd = tar -cz -C /tmp/backup_lotus/ --ignore-failed-read --warning="no-file-ignored" "lock.mdb" "data.mdb"
[ComponentScriptsBackup:PID-6324] ERROR: rc: 1, stderr: cat: '>': No such file or directory
cat: /c/temp/backup/myfolder/imagebuilder.gz.enc: No such file or directory
[ComponentScriptsBackup:PID-6324] ERROR: Component imagebuilder backup dispatch failed.
At this point I'm spent and I keep coming back to the same question. Why is this backup option labeled "SCP" if it's not actually going to use SCP??? There's nothing in the documentation that references any requirements for a GNU compatible shell or even a shell at all. The only notes about SCP at all are reminding you to use the absolute path to the folder. Why should SCP work any differently than FTP where it is clearly able to just transfer the backup files???
Hi,
after Upgrading to vRO 7.6, the synchronisation of workflows / packages / actions / ... is not available via the new H5-Client.
It also doens't work in the legacy client. (You can see changes which needed to be synced, but nothing happens)
Does nobody else miss the sync-feature?
Or am I missing something here?
With Horizon release 7.8.0 the SmartCard support still does not work.
Update : With Horizon release 7.9.0 the SmartCard support still does not work.
A year+ ago I debugged this here:
https://communities.vmware.com/message/2739746#2739746
Horizon 7.8.0 now contains the binaries for rhel (pcsd 1.8.8), which should support
the newer wire format of rhel:
[VMware-horizonagent-linux-x86_64-7.8.0-12610615]$ ll scredir/
total 26312
-rwxr-xr-x. 1 201 201 9507192 Mar 4 19:07 libscrediragent_188.so
-rwxr-xr-x. 1 201 201 9507184 Mar 4 19:07 libscrediragent.so
-rwxr-xr-x. 1 201 201 3959144 Mar 4 19:07 pcscd
-rwxr-xr-x. 1 201 201 3959168 Mar 4 19:07 pcscd_188
The install_viewagent.sh binary
- installs pcscd_188 in /usr/sbin/pcscd
- install libscrediragent_188.so in /usr/lib/vmware/vchan_plugins
When I reboot the machine, I can see in the pcsd log file:
00000000 bora/apps/rde/scrediragent/pcscd/debuglog.c:252:DebugLogSetLevel() debug level=debug
00000675 bora/apps/rde/scrediragent/pcscd/pcscdaemon.c:484:main() pcsc-lite daemon ready.
00001063 bora/apps/rde/scrediragent/pcscd/pcscd-ipc.c:500:IPCReaderThread() Entry IPCReaderThread.
00004455 bora/apps/rde/scrediragent/pcscd/utils.c:276:getUserID() uid: 979 gid: 970
00000511 bora/apps/rde/scrediragent/pcscd/pcscd-ipc.c:196:IPCAcceptConnection() Entry IPCAcceptConnection in bora/apps/rde/scrediragent/pcscd/pcscd-ipc.c.
02782719 bora/apps/rde/scrediragent/pcscd/winscard_msg_srv.c:232:ProcessEventsServer() Common channel packet arrival
00000040 bora/apps/rde/scrediragent/pcscd/winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 6
00000010 bora/apps/rde/scrediragent/pcscd/pcscdaemon.c:100:SVCServiceRunLoop() A new context thread creation is requested: 6
00000148 bora/apps/rde/scrediragent/pcscd/winscard_svc.c:405:ContextThread() Thread is started: dwClientID=6, threadContext @55E8C7A96590
00000446 bora/apps/rde/scrediragent/pcscd/winscard_svc.c:420:ContextThread() Received command: CMD_VERSION from client 6
00000299 bora/apps/rde/scrediragent/pcscd/winscard_svc.c:431:ContextThread() Client is protocol version 4:2
00000017 bora/apps/rde/scrediragent/pcscd/winscard_svc.c:440:ContextThread() CMD_VERSION rv=0x0 for client 6
00000620 bora/apps/rde/scrediragent/pcscd/winscard_svc.c:420:ContextThread() Received command: ESTABLISH_CONTEXT from client 6
00000306 bora/apps/rde/scrediragent/pcscd/pcscd-ipc.c:290:IPCRequest() ipc socket is 0, wait for connection from plugin
Then it blocks in a simply call, ESTABLISH_CONTEXT, for example, when starting:
- pkcs11-tool -I
And when I look into the log file of vmware-mks-<pid>.log:
2019-07-08T09:57:21.232+02:00| main| I125: VVC: (DEBUG) Added plugin to list libscrediragent.so fileName=/usr/lib/vmware/vchan_plugins/libscrediragent.so
2019-07-08T09:57:21.277+02:00| libscrediragent.so| I125: VTHREAD 140082588464896 "libscrediragent.so" tid 5873
2019-07-08T09:57:21.278+02:00| main| I125: VVC: LoadVvcPlugin: Started plugin 1: libscrediragent.so, filename:"/usr/lib/vmware/vchan_plugins/libscrediragent.so"
2019-07-08T09:57:21.278+02:00| main| I125: VVC: VVCLDR_LoadPlugins: Plugin entries found:1, loaded:1
2019-07-08T09:57:21.278+02:00| main| I125: VVC: VVC loader initialised
Result:
The situation is the same: Windows and linux smartcard redirection does not work.
Hello,
is it possible or recommended to modify the sizing of a EDGE once deployed.
I mean I deployed a medium but after some time I need to have a large on to handle the load.
do I simply shutdown the edge and modify the CPU and RAM to fit the large sizing?
many thanks
Eric
Hello,
the situation is that we have 2 console ports configured for failover, connected to two VMware traffic cluster switches Switch01.This is also
use for the vmotion and sync between the two ESXi server and that is also used to add the ESXi to the Virtual Center.
We linked this Switch01 to the Factory Core Switch02, but because of different models the uplink is not redundant
What we would like to do is create a third console port that we would connect to a other switch, to bypass the de VMWare traffic cluster Switch01
We can not use a uplink between the switches
config looks like :
ESXI1 - VSwitch01 - PortGroup01 | Physical NIC0 - Switch01A - port 9
| Physical NIC9 - Switch01B - port 9
VSwitch02 - PortGroup02 - Physical NIC5 - Switch02 - port 9
The same goes for the factory network that now goes by Switch01 to Switch02. here we would like to bypass Switch01, and link direct to the core.
We have added a NIC to the existing Vswitch, and then used two out of three to link direct to the core Switch02, instead of the Vwmare core (Switch01)
The port all come on to connected status, I can see traffic (leds flashing), but we are unable to connect to the con or one of the virtual servers..
All hints and tips are welcome. we need to try and solve this asap, since the customer has already lost production because of trying this getting to work.
Ciao a tutti,non riesco a installare i vmware tools su una vm.
L'host è windows 7 mentre la vm è os x 10.5. Leopard
La versione vmware è 10.0.1
ps la lingua della vm è in inglese,ho impostato l'italiano
come lingua principale ma i caratteri non coincidono
con la tastiera di windows
Grazie a chiunque mi aiuterà!
I use the Ubuntu "bionic-server-cloudimg-amd64.ova" Image to deploy a VM.
If I look at the ova config with "Get-OvfConfiguration" I get the following properties:
Common
instance_id :
hostname :
seedfrom :
public_keys :
user_data :
password :
NetworkMapping
VM_Network:
I could set successfully all the properties and import the OVA with Import-VApp.
The deployed VM uses DHCP to get a IP.
Its possible to set a static IP with the user_data, but I don't think that this is the right way. I also tried to modify the OVF XML File and pass a IP. But cloud-init seems to ignore this setting in the OS.
Is it possible to configure a Fixed IP, so that the VM starts with this designated IP? Or do I have to use "user_data" or a DHCP for this?
I want to use the stock OVA, and do this from outside.
Hi,
In the release notes (VMware View Planner 4.0 Release Notes ), it says:
Does this means that instant clones can be used for the View Planner tests? We have a Horizon solution based on Instant Clones rather than Linked Clones and it would be good to be able to leverage that setup rather than having to deploy View Composer to run View Planner tests.
CC
Hi,
I am not especially proficient in VMware networking, so would like to ask for some assistance on how I can run three subnets on a single ESX host. I have currently only got management and my first site networks configured.
I have an ASUS router which I have created routes to the required networks and I can ping the physical nics on the ESX host from my client machine. From within vCenter, on the guest VM's I can ping the ESX NIC associated to the relevant network, but cannot ping the outside world from the VM.
I am attempting to create a Lab environment and the following is the addressing I am using:
Router: 172.168.30.254 \24
ESX host (mgmt): 172.168.30 1 \24
vCenter: 172.168.30.30 \24
Site1 vmnic: 172.168.0.1
VMFILE1: 172.168.10.5
VMSQL1: 172.168.10.6
Below are screenshots of my configuration, it is probably something silly I have missed but thought Id ask the question here:
So from the screenshots and details above, can anyone tell me how I can create three networks in total on a single ESX host, that I can get access to the virtual machines on the subnets? I hope I have described this well enough
Any assistance is much appreciated!
The SFB optimization pack works great with Skype for Business.
When trying to make calls with MS Teams the speakers are great but the Mic gets muted.
this is the behavior on both win 7 and win 10 instances.
any way around this. We are planning our Migration to teams and VDI is a major component.
Hi
We are running vSphere 6.7.0.2 and ESXi 6.7.0 11675023 in our environment.
We begun to test with Windows Server 2019. We have made a template an deployed a few test machines.
Everythings seams to be working as it should except that we have problem taking snapshots where we want to quiesce the guest file system.
We are running VMware Tools 10.3.5.10430147 on the servers.
We get the following errors:
Warning message on XXXX on XXXXXXX in vDatacenter: The guest OS has reported an error during quiescing. The error code was: 5 The error message was: 'VssSyncStart' operation failed: IDispatch error #8454 (0x80042306)
Volume Shadow Copy Service error: Unexpected error calling routine IOCTL_DISK_SET_SNAPSHOT_INFO(\\.\PHYSICALDRIVE1) fails with winerror 1168. hr = 0x80070490, Element not found.
Running VSSADMIN LIST WRITERS show the following problem:
Writer name: 'System Writer'
Writer name: 'ASR Writer'
Writer name: 'WMI Writer'
Writer name: 'Registry Writer'
Writer name: 'COM+ REGDB Writer'
Writer name: 'Shadow Copy Optimization Writer'
All with the same state and error:
State: [7] Failed
Last error: Timed out
No errors in VSSADMIN before trying to take a snapshot.
Anyone else with this problem?
Help appreciated.
/Olof
As the product development team for VMware Workstation/Fusion, we get lots of feature requests.
To make sure we are working on the highest priority features, we would love your input on some of the ideas that the team is considering for future releases.
Here is the survey link: Fill | VMware Workstation/Fusion Roadmap Survey
Join the survey and we look forward hearing from you!
- VMware Workstation/Fusion Team
As the product development team for VMware Workstation/Fusion, we get lots of feature requests.
To make sure we are working on the highest priority features, we would love your input on some of the ideas that the team is considering for future releases.
Here is the survey link: Fill | VMware Workstation/Fusion Roadmap Survey
Join the survey and we look forward hearing from you!
- VMware Workstation/Fusion Team
As the product development team for VMware Workstation/Player/Fusion, we get lots of feature requests.
To make sure we are working on the highest priority features, we would love your input on some of the ideas that the team is considering for future releases.
Here is the survey link: Fill | VMware Workstation/Fusion Roadmap Survey
Join the survey and we look forward hearing from you!
- VMware Workstation/Player/Fusion Team
Hi! I was wondering if anyone had any tips regarding this issue;
The ElasticSearch service health reads as "red" after the VIDM upgrade from version 3.2 to 19.03 was done.
It seems that the error is due to unassigned shards, but I'm having trouble getting the exact error as the index seems to be wrong.
Here is some output:
node-02:~ # vamicli version --appliance
Version - 19.03.0.0 Build 13322314
Description - To update the appliance
node-02:~ # curl -XGET localhost:9200
{
"name" : "Eliminator",
"cluster_name" : "horizon",
"version" : {
"number" : "2.3.5",
"build_hash" : "90f439ff60a3c0f497f91663701e64ccd01edbb4",
"build_timestamp" : "2016-07-27T10:36:52Z",
"build_snapshot" : false,
"lucene_version" : "5.5.0"
},
"tagline" : "You Know, for Search"
}
node-02:~ # curl -XGET localhost:9200/_cluster/health?pretty
{
"cluster_name" : "horizon",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 6,
"number_of_data_nodes" : 6,
"active_primary_shards" : 2013,
"active_shards" : 4026,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 34,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 99.16256157635468
}
node-02:~ # curl -XGET localhost:9200/horizon/allocation/explain?pretty
{
"_index" : "horizon",
"_type" : "allocation",
"_id" : "explain",
"found" : false
}
node-02:~ # curl -XGET localhost:9200/_cluster/allocation/explain?pretty
{
"error" : {
"root_cause" : [ {
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_expression",
"resource.id" : "_cluster",
"index" : "_cluster"
} ],
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_expression",
"resource.id" : "_cluster",
"index" : "_cluster"
},
"status" : 404
}
Any advice? Thanks!
Hello,
I have a large vmdk I want to shrink because the storage is running out of space.
It is a 2.5 TB which should be resized to 800 GB. Unfortunately this is the only disk of the server, so OS and data resides on the same disk but in different partitions.
I found this tutorial how to accomplish it without using converter: Shrink a VMware Virtual Machine Disk (VMDK) – virtualman
Has anyone tried this already?
Because the VM storage has to be migrated at the end of the process, I guess the target storage needs to meet at least the size of the resized disk (in my case 800 GB).
I'm asking because the migration process checks the storage size and will probably ask for 2.5 TB.
Are there any other ways to safely resize my vmdk?
Converter is very slow, so it will exceed my time slot
Thank you.
Regards
or boot loader configuration file. Error: Windows VM Converter Standalone 6 trying to p2v powered on remote linux machine.
Here is my grub.conf.
#
# GRUB configuration file
#
# General configuration
background ffffff
color black/cyan black/light-gray
default 0
foreground 000000
hiddenmenu
splashimage (hd0,3)/boot/grub/3comSplash.xpm.gz
timeout 10
# Serial configuration
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal serial
# OS Installation 'A'
title VCX Linux
root (hd0,1)
kernel /boot/vmlinuz ro root=LABEL=/A quiet console=ttyS0,9600n8
initrd /boot/initrd.img
Is there anything that I can edit to make this work?
Thanks!